Commit 43d2974b authored by Shilpasri G Bhat's avatar Shilpasri G Bhat Committed by Michael Ellerman

hwmon: (ibmpowernv) Add energy sensors

This patch exports the accumulated power numbers of each power
sensor maintained by OCC.
Signed-off-by: default avatarShilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com>
Acked-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 3c8c049a
...@@ -51,6 +51,7 @@ enum sensors { ...@@ -51,6 +51,7 @@ enum sensors {
POWER_SUPPLY, POWER_SUPPLY,
POWER_INPUT, POWER_INPUT,
CURRENT, CURRENT,
ENERGY,
MAX_SENSOR_TYPE, MAX_SENSOR_TYPE,
}; };
...@@ -78,6 +79,7 @@ static struct sensor_group { ...@@ -78,6 +79,7 @@ static struct sensor_group {
{ "in" }, { "in" },
{ "power" }, { "power" },
{ "curr" }, { "curr" },
{ "energy" },
}; };
struct sensor_data { struct sensor_data {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment