diff options
author | Shilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com> | 2017-06-20 08:08:13 +0300 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2017-06-20 23:52:19 +0300 |
commit | 3a2b3d37e1eecb75d792db2588b9eb7a471632cd (patch) | |
tree | a9ed598ec426df9172b69f4485d0c254a3dfd9d1 /drivers/hwmon/ibmpowernv.c | |
parent | 3ab521601dc0273b553d203f6bd1d02319a011b9 (diff) | |
download | linux-3a2b3d37e1eecb75d792db2588b9eb7a471632cd.tar.xz |
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 <shilpa.bhat@linux.vnet.ibm.com>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/ibmpowernv.c')
-rw-r--r-- | drivers/hwmon/ibmpowernv.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 { |