iio: accel: bma220: Use BIT() and GENMASK() macros
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 31 Aug 2020 09:08:12 +0000 (12:08 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 3 Sep 2020 18:41:00 +0000 (19:41 +0100)
commit2b09b41dba04092fc198a5098908345f756db160
tree4b51875ce7d46fbb937368f0b99ca9360aa705a4
parentdf9f7d4c330d1ca3e124d73a137a7df32ca3ac33
iio: accel: bma220: Use BIT() and GENMASK() macros

Code is better to read when numbers of bit are explicitly used.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20200831090813.78841-7-andriy.shevchenko@linux.intel.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/bma220_spi.c