hwmon: (ina2xx) fix sysfs shunt resistor read access
authorLothar Felten <lothar.felten@gmail.com>
Tue, 14 Aug 2018 07:09:37 +0000 (09:09 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Oct 2018 00:00:58 +0000 (17:00 -0700)
commit0647ce03bd48aac37b055355c168b4a889bcc36b
tree71cb5b4f32d15c443769a09348512e2733f6bfcf
parent59f5838cc95070135fe5137125d4ab7fdb471800
hwmon: (ina2xx) fix sysfs shunt resistor read access

[ Upstream commit 3ad867001c91657c46dcf6656d52eb6080286fd5 ]

fix the sysfs shunt resistor read access: return the shunt resistor
value, not the calibration register contents.

update email address

Signed-off-by: Lothar Felten <lothar.felten@gmail.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/hwmon/ina2xx
drivers/hwmon/ina2xx.c
include/linux/platform_data/ina2xx.h