diff options
author | Arushi Singhal <arushisinghal19971997@gmail.com> | 2017-03-22 19:58:28 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-03-23 16:25:33 +0300 |
commit | 12eed2f2fb8ff7623295a5f69e22ef247273cd8f (patch) | |
tree | 18bd94906cfaa71d338863c7923bc922121d9fe6 /drivers/staging/fbtft/fb_ssd1289.c | |
parent | 4f8f316be6bace82139e321e11674949ce446454 (diff) | |
download | linux-12eed2f2fb8ff7623295a5f69e22ef247273cd8f.tar.xz |
staging: fbtft: Replace a bit shift by a use of BIT.
This patch replaces bit shifting on 1 with the BIT(x) macro.
This was done with coccinelle:
@@
constant c;
@@
-1 << c
+BIT(c)
Signed-off-by: Arushi Singhal <arushisinghal19971997@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/fbtft/fb_ssd1289.c')
-rw-r--r-- | drivers/staging/fbtft/fb_ssd1289.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/fbtft/fb_ssd1289.c b/drivers/staging/fbtft/fb_ssd1289.c index c603e1516e64..129e175fcd7e 100644 --- a/drivers/staging/fbtft/fb_ssd1289.c +++ b/drivers/staging/fbtft/fb_ssd1289.c @@ -47,7 +47,7 @@ static int init_display(struct fbtft_par *par) write_reg(par, 0x0E, 0x2B00); write_reg(par, 0x1E, 0x00B7); write_reg(par, 0x01, - (1 << 13) | (par->bgr << 11) | (1 << 9) | (HEIGHT - 1)); + BIT(13) | (par->bgr << 11) | BIT(9) | (HEIGHT - 1)); write_reg(par, 0x02, 0x0600); write_reg(par, 0x10, 0x0000); write_reg(par, 0x05, 0x0000); |