]> git.baikalelectronics.ru Git - kernel.git/commit
iio: adc: ina2xx: Remove unneeded dummy read to clear CNVR flag
authorStefan Brüns <stefan.bruens@rwth-aachen.de>
Fri, 8 Dec 2017 17:41:48 +0000 (18:41 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Jan 2018 15:03:42 +0000 (16:03 +0100)
commit2361eb10ffeeea81b82e67abd61cd091b5a7f93f
treea06176f3331f570d066b32ef83676a3aaff0b24c
parent5642a4b0cc60dc21984d840b49d6260c6a333a18
iio: adc: ina2xx: Remove unneeded dummy read to clear CNVR flag

Although the datasheet states the CNVR flag is cleared by reading the
BUS_VOLTAGE register, it is actually cleared by reading any of the
voltage/current/power registers.

The behaviour has been confirmed by TI support:
http://e2e.ti.com/support/amplifiers/current-shunt-monitors/f/931/p/647053/2378282

Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/adc/ina2xx-adc.c