diff options
author | JuenKit Yip <JuenKit_Yip@hotmail.com> | 2023-06-16 19:00:17 +0300 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2023-06-17 19:14:55 +0300 |
commit | fbb5a7fee063fe97009ff28df8cd0e4af3202683 (patch) | |
tree | 3d29fc43e0860263864e834ddf748c58fbf422b6 /drivers/hwmon | |
parent | af5ab550125f1bbae0ba89ed8e1994a11f40b96a (diff) | |
download | linux-fbb5a7fee063fe97009ff28df8cd0e4af3202683.tar.xz |
hwmon: (sht3x) complement sysfs interface for sts3x
Compared to sht3x, sts3x has the similar functions and operations
but it has no humidity sensor.
Signed-off-by: JuenKit Yip <JuenKit_Yip@hotmail.com>
Link: https://lore.kernel.org/r/DB4PR10MB6261B912ADFA6BB78240596F9258A@DB4PR10MB6261.EURPRD10.PROD.OUTLOOK.COM
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r-- | drivers/hwmon/sht3x.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/hwmon/sht3x.c b/drivers/hwmon/sht3x.c index cbfb219cef2d..bf18630619e0 100644 --- a/drivers/hwmon/sht3x.c +++ b/drivers/hwmon/sht3x.c @@ -707,6 +707,14 @@ static struct attribute *sht3x_attrs[] = { static struct attribute *sts3x_attrs[] = { &sensor_dev_attr_temp1_input.dev_attr.attr, + &sensor_dev_attr_temp1_max.dev_attr.attr, + &sensor_dev_attr_temp1_max_hyst.dev_attr.attr, + &sensor_dev_attr_temp1_min.dev_attr.attr, + &sensor_dev_attr_temp1_min_hyst.dev_attr.attr, + &sensor_dev_attr_temp1_alarm.dev_attr.attr, + &sensor_dev_attr_heater_enable.dev_attr.attr, + &sensor_dev_attr_update_interval.dev_attr.attr, + &sensor_dev_attr_repeatability.dev_attr.attr, NULL }; |