mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-22 13:54:57 +08:00
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>
This commit is contained in:
parent
3c8c049aa7
commit
43d2974b66
@ -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 {
|
|||||||
{ "in" },
|
{ "in" },
|
||||||
{ "power" },
|
{ "power" },
|
||||||
{ "curr" },
|
{ "curr" },
|
||||||
|
{ "energy" },
|
||||||
};
|
};
|
||||||
|
|
||||||
struct sensor_data {
|
struct sensor_data {
|
||||||
|
Loading…
Reference in New Issue
Block a user