]> git.baikalelectronics.ru Git - kernel.git/commit
staging: fbtft: Replace a bit shift by a use of BIT.
authorArushi Singhal <arushisinghal19971997@gmail.com>
Wed, 22 Mar 2017 16:58:28 +0000 (22:28 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Mar 2017 13:25:33 +0000 (14:25 +0100)
commita331adcf87929856a0785c2ee2705d48d1d5d393
tree18bd94906cfaa71d338863c7923bc922121d9fe6
parent65191558e04860aacbe55d94762ee1290cf0ae93
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>
drivers/staging/fbtft/fb_agm1264k-fl.c
drivers/staging/fbtft/fb_ili9163.c
drivers/staging/fbtft/fb_ili9325.c
drivers/staging/fbtft/fb_ssd1289.c