]> git.baikalelectronics.ru Git - kernel.git/commit
iio: adc: max9611: Fix attribute measure unit
authorJacopo Mondi <jacopo+renesas@jmondi.org>
Tue, 9 May 2017 07:57:57 +0000 (09:57 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 14 May 2017 15:38:55 +0000 (16:38 +0100)
commitb0b38fa836a5951ed79317e4cc14d5b318b5d931
tree750b3ddd48c5d3cb4f4c38fe6dccaa0d72e8fcf9
parent471b3470c7f96d6cfd86087a8081a16e9be0f8ad
iio: adc: max9611: Fix attribute measure unit

The power and current "shunt-resistor" attribute's 'show' function
displays the resistor value in milli-Ohms, while the ABI description
specifies it should be displayed in Ohms. Fix it.

Reported-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/max9611.c