diff options
author | Nicolin Chen <nicoleotsuka@gmail.com> | 2018-10-05 16:59:04 -0700 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2018-10-10 20:37:13 -0700 |
commit | 68c0d69dee594e1488aebe12aa50fd79a3e5e5b5 (patch) | |
tree | 51d47b87f3388823cfba2922dfd9514bbb3b7c99 /include/linux/hwmon.h | |
parent | ead21c77d709cfba593c42f4d71c09e469a19448 (diff) | |
download | linux-68c0d69dee594e1488aebe12aa50fd79a3e5e5b5.tar.gz linux-68c0d69dee594e1488aebe12aa50fd79a3e5e5b5.tar.bz2 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 'include/linux/hwmon.h')
-rw-r--r-- | include/linux/hwmon.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/hwmon.h b/include/linux/hwmon.h index 9493d4a388db..99e0c1b0b5fb 100644 --- a/include/linux/hwmon.h +++ b/include/linux/hwmon.h @@ -118,6 +118,7 @@ enum hwmon_in_attributes { hwmon_in_max_alarm, hwmon_in_lcrit_alarm, hwmon_in_crit_alarm, + hwmon_in_enable, }; #define HWMON_I_INPUT BIT(hwmon_in_input) @@ -135,6 +136,7 @@ enum hwmon_in_attributes { #define HWMON_I_MAX_ALARM BIT(hwmon_in_max_alarm) #define HWMON_I_LCRIT_ALARM BIT(hwmon_in_lcrit_alarm) #define HWMON_I_CRIT_ALARM BIT(hwmon_in_crit_alarm) +#define HWMON_I_ENABLE BIT(hwmon_in_enable) enum hwmon_curr_attributes { hwmon_curr_input, |