staging: sm750fb: Prefer using the BIT macro
authorSanjana Sanikommu <sanjana99reddy99@gmail.com>
Mon, 25 Mar 2019 07:44:01 +0000 (13:14 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Mar 2019 20:49:12 +0000 (05:49 +0900)
commitc8723cb8d06bb1064508055881c1bd0c90a15a18
treea67e2170d84de4e531845b2f363f81e3fb7507d3
parentdc1e3766ec72f6d5b5a610eb772ea1868d367163
staging: sm750fb: Prefer using the BIT macro

Challenge suggested by coccinelle.

Replace bit shifting on 1 with the BIT(x) macro.
Coccinelle script:

@@
constant c;
@@

-(1 << c)
+BIT(c)

Signed-off-by: Sanjana Sanikommu <sanjana99reddy99@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/sm750fb/ddk750_chip.c