diff options
author | Shilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com> | 2017-06-20 07:08:13 +0200 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2017-06-20 22:52:19 +0200 |
commit | 3a2b3d37e1eecb75d792db2588b9eb7a471632cd (patch) | |
tree | a9ed598ec426df9172b69f4485d0c254a3dfd9d1 /drivers | |
parent | hwmon: (ibmpowernv) introduce a legacy_compatibles array (diff) | |
download | linux-3a2b3d37e1eecb75d792db2588b9eb7a471632cd.tar.xz linux-3a2b3d37e1eecb75d792db2588b9eb7a471632cd.zip |
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')
-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 { |