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_ili9163.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_ili9163.c')
-rw-r--r-- | drivers/staging/fbtft/fb_ili9163.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/fbtft/fb_ili9163.c b/drivers/staging/fbtft/fb_ili9163.c index 579e17734612..045cadc3bc65 100644 --- a/drivers/staging/fbtft/fb_ili9163.c +++ b/drivers/staging/fbtft/fb_ili9163.c @@ -194,7 +194,7 @@ static int set_var(struct fbtft_par *par) /* Colorspcae */ if (par->bgr) - mactrl_data |= (1 << 2); + mactrl_data |= BIT(2); write_reg(par, MIPI_DCS_SET_ADDRESS_MODE, mactrl_data); write_reg(par, MIPI_DCS_WRITE_MEMORY_START); return 0; |