iio: adc: ina2xx: Make use of attribute flags consistent on all channels
authorStefan Brüns <stefan.bruens@rwth-aachen.de>
Wed, 24 May 2017 00:09:05 +0000 (02:09 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sat, 3 Jun 2017 07:43:20 +0000 (08:43 +0100)
commit84b84dc19bf19d66b8c8fe54a74c0f5edee51e86
treea39e314193d02adca709946ad5a61c913fea76fa
parentf06a0d2c880c17672f62d2d5b82410bddf64d1a7
iio: adc: ina2xx: Make use of attribute flags consistent on all channels

Flags for shared channel attributes should be set on all channels of a
channel set. I.e. SAMP_FREQUENCY and OVERSAMPLING_RATIO are set on the
in_voltage{0,1} channels, thus should be set on in_power, in_current.

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