hwmon: (ibmpowernv) Add current(A) sensor
authorShilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com>
Tue, 20 Jun 2017 05:08:13 +0000 (10:38 +0530)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 20 Jun 2017 20:52:19 +0000 (13:52 -0700)
This patch exports current(A) sensors in inband sensors copied to
main memory by OCC.

Signed-off-by: Shilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/ibmpowernv.c

index 297fef8d87de6c9b33df55b19b0118d807c78f24..5ccdd0b5265066cb98aa9cbe720c43604485460c 100644 (file)
@@ -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 {