Re: [PATCH 6/6] Staging: iio: resolver: Prefer using the BIT macro

2015-09-10 Thread Julia Lawall
On Wed, 9 Sep 2015, Joe Perches wrote: > On Thu, 2015-09-10 at 09:43 +0530, Shraddha Barke wrote: > > This patch replaces bit shifting on 1 with the BIT(x) macro > > as it's extensively used by other function in this driver. > [] > > diff --git a/drivers/staging/iio/resolver/ad2s1210.c > > b/dr

Re: [PATCH 6/6] Staging: iio: resolver: Prefer using the BIT macro

2015-09-09 Thread Joe Perches
On Thu, 2015-09-10 at 09:43 +0530, Shraddha Barke wrote: > This patch replaces bit shifting on 1 with the BIT(x) macro > as it's extensively used by other function in this driver. [] > diff --git a/drivers/staging/iio/resolver/ad2s1210.c > b/drivers/staging/iio/resolver/ad2s1210.c [] > @@ -149,7 +

[PATCH 6/6] Staging: iio: resolver: Prefer using the BIT macro

2015-09-09 Thread Shraddha Barke
This patch replaces bit shifting on 1 with the BIT(x) macro as it's extensively used by other function in this driver. This was done with coccinelle: @@ int g; @@ -(1 << g) +BIT(g) Signed-off-by: Shraddha Barke --- drivers/staging/iio/resolver/ad2s1210.c | 2 +- 1 file changed, 1 insertion(+),