diff options
author | Arushi Singhal <arushisinghal19971997@gmail.com> | 2017-03-22 22:28:28 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-03-23 14:25:33 +0100 |
commit | 12eed2f2fb8ff7623295a5f69e22ef247273cd8f (patch) | |
tree | 18bd94906cfaa71d338863c7923bc922121d9fe6 /drivers/staging/fbtft/fb_ili9325.c | |
parent | 4f8f316be6bace82139e321e11674949ce446454 (diff) | |
download | op-kernel-dev-12eed2f2fb8ff7623295a5f69e22ef247273cd8f.zip op-kernel-dev-12eed2f2fb8ff7623295a5f69e22ef247273cd8f.tar.gz |
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_ili9325.c')
-rw-r--r-- | drivers/staging/fbtft/fb_ili9325.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/fbtft/fb_ili9325.c b/drivers/staging/fbtft/fb_ili9325.c index 7189de5..7f9e9b2 100644 --- a/drivers/staging/fbtft/fb_ili9325.c +++ b/drivers/staging/fbtft/fb_ili9325.c @@ -126,7 +126,7 @@ static int init_display(struct fbtft_par *par) write_reg(par, 0x0013, 0x0000); /* VDV[4:0] for VCOM amplitude */ mdelay(200); /* Dis-charge capacitor power voltage */ write_reg(par, 0x0010, /* SAP, BT[3:0], AP, DSTB, SLP, STB */ - (1 << 12) | (bt << 8) | (1 << 7) | (0x01 << 4)); + BIT(12) | (bt << 8) | BIT(7) | BIT(4)); write_reg(par, 0x0011, 0x220 | vc); /* DC1[2:0], DC0[2:0], VC[2:0] */ mdelay(50); /* Delay 50ms */ write_reg(par, 0x0012, vrh); /* Internal reference voltage= Vci; */ |