iio: adc: ina2xx: Adhere to documented ABI, use Ohm instead of uOhm
authorStefan Brüns <stefan.bruens@rwth-aachen.de>
Sun, 1 Oct 2017 19:48:17 +0000 (21:48 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 9 Oct 2017 19:51:01 +0000 (20:51 +0100)
commit103f3afe91858a7c3b9115e197ddaa0cb63dbdf2
treec6dcfab5a83c819407cf2e3abaa5a13fde03789b
parent92617c158ae42b4bcedd7c1d7e0f7b6af8f30c38
iio: adc: ina2xx: Adhere to documented ABI, use Ohm instead of uOhm

According to the ABI documentation, the shunt resistor value should be
specificied in Ohm. As this is also used/documented for the MAX9611,
use the same for the INA2xx driver.

This poses an ABI break for anyone actually altering the shunt value
through the sysfs interface, it does not alter the default value nor
a value set from the devicetree.

Minor change: Fix comment, 1mA is 10^-3A.

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