projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ab5216
)
hwmon: (ibmpowernv) Add current(A) sensor
author
Shilpasri G Bhat
<shilpa.bhat@linux.vnet.ibm.com>
Tue, 20 Jun 2017 05:08:13 +0000
(10:38 +0530)
committer
Guenter Roeck
<linux@roeck-us.net>
Tue, 20 Jun 2017 20:52:19 +0000
(13:52 -0700)
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>
drivers/hwmon/ibmpowernv.c
patch
|
blob
|
history
diff --git
a/drivers/hwmon/ibmpowernv.c
b/drivers/hwmon/ibmpowernv.c
index 297fef8d87de6c9b33df55b19b0118d807c78f24..5ccdd0b5265066cb98aa9cbe720c43604485460c 100644
(file)
--- 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 {