projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c8c049
)
hwmon: (ibmpowernv) Add energy sensors
author
Shilpasri G Bhat
<shilpa.bhat@linux.vnet.ibm.com>
Mon, 7 May 2018 10:25:38 +0000
(15:55 +0530)
committer
Michael Ellerman
<mpe@ellerman.id.au>
Mon, 21 May 2018 04:48:03 +0000
(14:48 +1000)
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>
drivers/hwmon/ibmpowernv.c
patch
|
blob
|
history
diff --git
a/drivers/hwmon/ibmpowernv.c
b/drivers/hwmon/ibmpowernv.c
index
74d9b5a
..
0298745
100644
(file)
--- 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 {