diff mbox series

[v2,6/6] hwmon: (sht3x) complement sysfs interface for sts3x

Message ID DB4PR10MB6261B912ADFA6BB78240596F9258A@DB4PR10MB6261.EURPRD10.PROD.OUTLOOK.COM (mailing list archive)
State Accepted
Headers show
Series [v2,1/6] hwmon: (sht3x) remove sht3x_platform_data | expand

Commit Message

JuenKit Yip June 16, 2023, 4 p.m. UTC
Compared to sht3x, sts3x has the similiar functions and operations
but it has no humidity sensor.

Signed-off-by: JuenKit Yip <JuenKit_Yip@hotmail.com>
---
 drivers/hwmon/sht3x.c | 8 ++++++++
 1 file changed, 8 insertions(+)

Comments

Guenter Roeck June 17, 2023, 4:14 p.m. UTC | #1
On Sat, Jun 17, 2023 at 12:00:17AM +0800, JuenKit Yip wrote:
> Compared to sht3x, sts3x has the similiar functions and operations

s/similiar/similar/

> but it has no humidity sensor.
> 
> Signed-off-by: JuenKit Yip <JuenKit_Yip@hotmail.com>

Applied to hwmon-next after fixing the above. Please run checkpatch
on your patches; it would have told you.

Thanks,
Guenter

> ---
>  drivers/hwmon/sht3x.c | 8 ++++++++
>  1 file changed, 8 insertions(+)
> 
> diff --git a/drivers/hwmon/sht3x.c b/drivers/hwmon/sht3x.c
> index adfc11c12..ae384ced7 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
>  };
>
diff mbox series

Patch

diff --git a/drivers/hwmon/sht3x.c b/drivers/hwmon/sht3x.c
index adfc11c12..ae384ced7 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
 };