diff options
-rw-r--r-- | modules/devices/sensors.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/modules/devices/sensors.c b/modules/devices/sensors.c index 931188eb..7dd3ec84 100644 --- a/modules/devices/sensors.c +++ b/modules/devices/sensors.c @@ -236,6 +236,24 @@ static const struct HwmonSensor hwmon_sensors[] = { 1000.0 }, { + "Current", + "^curr([0-9]+)_input$", + "%s/curr%d_input", + "%s/curr%d_label", + "curr%d", + "A", + 1000.0 + }, + { + "Power", + "^power([0-9]+)_input$", + "%s/power%d_input", + "%s/power%d_label", + "power%d", + "W", + 1000000.0 + }, + { "Voltage", "^cpu([0-9]+)_vid$", "%s/cpu%d_vid", |