From: Shilpasri G Bhat Date: Tue, 20 Jun 2017 05:08:13 +0000 (+0530) Subject: hwmon: (ibmpowernv) Add current(A) sensor X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3a2b3d37e1eecb75d792db2588b9eb7a471632cd;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git hwmon: (ibmpowernv) Add current(A) sensor This patch exports current(A) sensors in inband sensors copied to main memory by OCC. Signed-off-by: Shilpasri G Bhat Reviewed-by: Cédric Le Goater Signed-off-by: Guenter Roeck --- diff --git a/drivers/hwmon/ibmpowernv.c b/drivers/hwmon/ibmpowernv.c index 297fef8d87de..5ccdd0b52650 100644 --- a/drivers/hwmon/ibmpowernv.c +++ b/drivers/hwmon/ibmpowernv.c @@ -50,6 +50,7 @@ enum sensors { TEMP, POWER_SUPPLY, POWER_INPUT, + CURRENT, MAX_SENSOR_TYPE, }; @@ -75,7 +76,8 @@ static struct sensor_group { { "fan" }, { "temp" }, { "in" }, - { "power" } + { "power" }, + { "curr" }, }; struct sensor_data {