]> git.karo-electronics.de Git - karo-tx-linux.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)
commit12eed2f2fb8ff7623295a5f69e22ef247273cd8f
tree18bd94906cfaa71d338863c7923bc922121d9fe6
parent4f8f316be6bace82139e321e11674949ce446454
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