diff options
author | Guenter Roeck <linux@roeck-us.net> | 2019-04-15 16:23:48 -0400 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2019-04-15 20:19:53 -0400 |
commit | 9f00995e4eb293679597d76462fec2ce152e3500 (patch) | |
tree | 34b245975a4631e2a136e357daad4f735c0398ef /drivers/hwmon | |
parent | 5d9e8b3f809f1c12e32fea7061ad2319d2848600 (diff) |
hwmon: Add support for samples attributes
Add support for the new samples attributes to the hwmon core.
Cc: Krzysztof Adamski <krzysztof.adamski@nokia.com>
Cc: Nicolin Chen <nicoleotsuka@gmail.com>
Acked-by: Nicolin Chen <nicoleotsuka@gmail.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r-- | drivers/hwmon/hwmon.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/hwmon/hwmon.c b/drivers/hwmon/hwmon.c index c22dc1e07911..cd91510a5387 100644 --- a/drivers/hwmon/hwmon.c +++ b/drivers/hwmon/hwmon.c | |||
@@ -324,6 +324,11 @@ static const char * const hwmon_chip_attrs[] = { | |||
324 | [hwmon_chip_power_reset_history] = "power_reset_history", | 324 | [hwmon_chip_power_reset_history] = "power_reset_history", |
325 | [hwmon_chip_update_interval] = "update_interval", | 325 | [hwmon_chip_update_interval] = "update_interval", |
326 | [hwmon_chip_alarms] = "alarms", | 326 | [hwmon_chip_alarms] = "alarms", |
327 | [hwmon_chip_samples] = "samples", | ||
328 | [hwmon_chip_curr_samples] = "curr_samples", | ||
329 | [hwmon_chip_in_samples] = "in_samples", | ||
330 | [hwmon_chip_power_samples] = "power_samples", | ||
331 | [hwmon_chip_temp_samples] = "temp_samples", | ||
327 | }; | 332 | }; |
328 | 333 | ||
329 | static const char * const hwmon_temp_attr_templates[] = { | 334 | static const char * const hwmon_temp_attr_templates[] = { |