From: JuenKit Yip Date: Fri, 16 Jun 2023 16:00:17 +0000 (+0800) Subject: hwmon: (sht3x) complement sysfs interface for sts3x X-Git-Tag: v6.6.7~2533^2~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fbb5a7fee063fe97009ff28df8cd0e4af3202683;p=platform%2Fkernel%2Flinux-starfive.git 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 Link: https://lore.kernel.org/r/DB4PR10MB6261B912ADFA6BB78240596F9258A@DB4PR10MB6261.EURPRD10.PROD.OUTLOOK.COM Signed-off-by: Guenter Roeck --- diff --git a/drivers/hwmon/sht3x.c b/drivers/hwmon/sht3x.c index cbfb219..bf18630 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 };