iio: adc: Fix bad GENMASK use, typos, whitespace
authorStefan Brüns <stefan.bruens@rwth-aachen.de>
Mon, 1 May 2017 11:19:42 +0000 (13:19 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 7 May 2017 13:42:12 +0000 (14:42 +0100)
commitac23d64defcdce0dad93e10ac7f202430f713729
tree06aa87afafc20343bd8386820deadc749e20d35c
parentde01d65795647e66b29bf1400c2b5c39998a47d8
iio: adc: Fix bad GENMASK use, typos, whitespace

Commit 7906dd52c5a0 ("iio: ina2xx: Fix whitespace and re-order code")
changed the register number of the MASK_ENABLE register from 0x06 to the
value equivalent GENMASK(2,1), although its no mask.
Also fix a typo (INA2_6_6 instead of INA2_2_6), and use the datasheet
name ("Mask/Enable") for the register number define.
Fix bad indentation for channel attributes.

Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
Acked-by: Andrew F. Davis <afd@ti.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/ina2xx-adc.c