iio: adc: Fix integration time/averaging for INA219/220
authorStefan Brüns <stefan.bruens@rwth-aachen.de>
Wed, 24 May 2017 00:09:06 +0000 (02:09 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sat, 3 Jun 2017 09:01:57 +0000 (10:01 +0100)
commit18edac2e22f47e24815f2c32abdcee183a349e6a
treeee1735df51d27fb13718f719b2135739a532e104
parent6b503b216d1eff4d61a0bc34e09d1fd4d6e0ee79
iio: adc: Fix integration time/averaging for INA219/220

INA226/230/231 has integration times per voltage channel and common
averaging setting for both channels, while the INA219/220 only has a
combined integration time/averaging setting per channel.
Only expose the averaging attribute for the INA226, and expose the correct
integration times for the INA219.

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