summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon
diff options
context:
space:
mode:
authorNicolin Chen <nicoleotsuka@gmail.com>2018-10-06 01:59:04 +0200
committerGuenter Roeck <linux@roeck-us.net>2018-10-11 05:37:13 +0200
commit68c0d69dee594e1488aebe12aa50fd79a3e5e5b5 (patch)
tree51d47b87f3388823cfba2922dfd9514bbb3b7c99 /drivers/hwmon
parenthwmon: (ina3221) mark PM functions as __maybe_unused (diff)
downloadlinux-68c0d69dee594e1488aebe12aa50fd79a3e5e5b5.tar.xz
linux-68c0d69dee594e1488aebe12aa50fd79a3e5e5b5.zip
hwmon: (core) Add hwmon_in_enable attribute
According to hwmon ABI, in%d_enable is a sysfs interface that allows user space to enable and disable the input sensor. So this patch just simply adds the attribute to the list. Signed-off-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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hwmon/hwmon.c b/drivers/hwmon/hwmon.c
index 33d51281272b..ac1cdf88840f 100644
--- a/drivers/hwmon/hwmon.c
+++ b/drivers/hwmon/hwmon.c
@@ -356,6 +356,7 @@ static const char * const hwmon_in_attr_templates[] = {
[hwmon_in_max_alarm] = "in%d_max_alarm",
[hwmon_in_lcrit_alarm] = "in%d_lcrit_alarm",
[hwmon_in_crit_alarm] = "in%d_crit_alarm",
+ [hwmon_in_enable] = "in%d_enable",
};
static const char * const hwmon_curr_attr_templates[] = {