diff options
author | Payal Kshirsagar <payal.s.kshirsagar.98@gmail.com> | 2019-04-02 17:37:44 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-04-02 20:57:11 +0300 |
commit | 36cbd6851d57bcdd3500bbcc3b98ea16f81939ca (patch) | |
tree | 4550abfe3d935d4e3b2a5248192ee49674379225 /drivers/staging/fbtft | |
parent | 46a49a52d1c0e760a39ca0be56ce8a71f5661393 (diff) | |
download | linux-36cbd6851d57bcdd3500bbcc3b98ea16f81939ca.tar.xz |
staging: fbtft: fb_ssd1351.c: Replace bit shifting with BIT macro
Challenge suggested by coccinelle.
Prefer using BIT and replace bit shifting with the BIT(x) macro.
Signed-off-by: Payal Kshirsagar <payal.s.kshirsagar.98@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/fbtft')
-rw-r--r-- | drivers/staging/fbtft/fb_ssd1351.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/fbtft/fb_ssd1351.c b/drivers/staging/fbtft/fb_ssd1351.c index 9ac78ce30619..900b28d826b2 100644 --- a/drivers/staging/fbtft/fb_ssd1351.c +++ b/drivers/staging/fbtft/fb_ssd1351.c @@ -81,10 +81,10 @@ static int set_var(struct fbtft_par *par) switch (par->info->var.rotate) { case 0: - write_reg(par, 0xA0, remap | 0x00 | 1 << 4); + write_reg(par, 0xA0, remap | 0x00 | BIT(4)); break; case 270: - write_reg(par, 0xA0, remap | 0x03 | 1 << 4); + write_reg(par, 0xA0, remap | 0x03 | BIT(4)); break; case 180: write_reg(par, 0xA0, remap | 0x02); |