]> git.baikalelectronics.ru Git - kernel.git/commit
staging: rts5208: Replace a bit shift by a use of BIT.
authorArushi Singhal <arushisinghal19971997@gmail.com>
Wed, 22 Mar 2017 13:17:57 +0000 (18:47 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Mar 2017 13:25:33 +0000 (14:25 +0100)
commite78122358ab0b9d3a093abd9cdf39d0455bdd463
treea1810c6e55319046988cd50136af71902fd8b206
parenta69e14da19f4a9beaae30dfd528f0c5e5c7d7795
staging: rts5208: 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>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rts5208/rtsx_chip.c