iio:adc:berlin2-adc: use GENMASK and BIT for masks
authorHartmut Knaack <knaack.h@gmx.de>
Mon, 27 Jul 2015 22:38:59 +0000 (00:38 +0200)
committerJonathan Cameron <jic23@kernel.org>
Wed, 12 Aug 2015 21:11:38 +0000 (22:11 +0100)
commit4b308e8c396dc9af3e1a97f75d15c055e09a17b2
tree044febb706e86df42416a070c1a59563264edd4a
parent1c46ae0af6df0bbde66c5e868563be57f18a27b4
iio:adc:berlin2-adc: use GENMASK and BIT for masks

Make use of GENMASK for consecutive bitmasks and BIT for single bitmasks.

Signed-off-by: Hartmut Knaack <knaack.h@gmx.de>
Acked-by: Antoine Tenart <antoine.tenart@free-electrons.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/berlin2-adc.c