summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon
diff options
context:
space:
mode:
authorShilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com>2018-05-07 12:25:38 +0200
committerMichael Ellerman <mpe@ellerman.id.au>2018-05-21 06:48:03 +0200
commit43d2974b66d916a6df16e536da542e3a65aab7b9 (patch)
tree6c36aa9861ce636778e3c6819d00ae7648a1595c /drivers/hwmon
parenthwmon: (ibmpowernv): Add support to read 64 bit sensors (diff)
downloadlinux-43d2974b66d916a6df16e536da542e3a65aab7b9.tar.xz
linux-43d2974b66d916a6df16e536da542e3a65aab7b9.zip
hwmon: (ibmpowernv) Add energy sensors
This patch exports the accumulated power numbers of each power sensor maintained by OCC. Signed-off-by: Shilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com> Acked-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r--drivers/hwmon/ibmpowernv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/hwmon/ibmpowernv.c b/drivers/hwmon/ibmpowernv.c
index 74d9b5ae55ec..0298745d46e4 100644
--- a/drivers/hwmon/ibmpowernv.c
+++ b/drivers/hwmon/ibmpowernv.c
@@ -51,6 +51,7 @@ enum sensors {
POWER_SUPPLY,
POWER_INPUT,
CURRENT,
+ ENERGY,
MAX_SENSOR_TYPE,
};
@@ -78,6 +79,7 @@ static struct sensor_group {
{ "in" },
{ "power" },
{ "curr" },
+ { "energy" },
};
struct sensor_data {