Skip to content

Commit fbb5a7f

Browse files
Hunterteaegggroeck
authored andcommitted
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>
1 parent af5ab55 commit fbb5a7f

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

drivers/hwmon/sht3x.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -707,6 +707,14 @@ static struct attribute *sht3x_attrs[] = {
707707

708708
static struct attribute *sts3x_attrs[] = {
709709
&sensor_dev_attr_temp1_input.dev_attr.attr,
710+
&sensor_dev_attr_temp1_max.dev_attr.attr,
711+
&sensor_dev_attr_temp1_max_hyst.dev_attr.attr,
712+
&sensor_dev_attr_temp1_min.dev_attr.attr,
713+
&sensor_dev_attr_temp1_min_hyst.dev_attr.attr,
714+
&sensor_dev_attr_temp1_alarm.dev_attr.attr,
715+
&sensor_dev_attr_heater_enable.dev_attr.attr,
716+
&sensor_dev_attr_update_interval.dev_attr.attr,
717+
&sensor_dev_attr_repeatability.dev_attr.attr,
710718
NULL
711719
};
712720

0 commit comments

Comments
 (0)