Message ID | 20240530152311.3765049-1-linux@roeck-us.net (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
Series | hwmon: (shtc1) Fix property misspelling | expand |
On 30/5/2024 23:23, Guenter Roeck wrote: > The property name is "sensirion,low-precision", not > "sensicon,low-precision". > > Cc: Chris Ruehl <chris.ruehl@gtsys.com.hk> > Fixes: be7373b60df5 ("hwmon: shtc1: add support for device tree bindings") > Signed-off-by: Guenter Roeck <linux@roeck-us.net> > --- > drivers/hwmon/shtc1.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/hwmon/shtc1.c b/drivers/hwmon/shtc1.c > index 1f96e94967ee..439dd3dba5fc 100644 > --- a/drivers/hwmon/shtc1.c > +++ b/drivers/hwmon/shtc1.c > @@ -238,7 +238,7 @@ static int shtc1_probe(struct i2c_client *client) > > if (np) { > data->setup.blocking_io = of_property_read_bool(np, "sensirion,blocking-io"); > - data->setup.high_precision = !of_property_read_bool(np, "sensicon,low-precision"); > + data->setup.high_precision = !of_property_read_bool(np, "sensirion,low-precision"); > } else { > if (client->dev.platform_data) > data->setup = *(struct shtc1_platform_data *)dev->platform_data; Strange how that can happen! Thank you catch this misspelled property. Reviewed-by: Chris Ruehl <chris.ruehl@gtsys.com.hk>
diff --git a/drivers/hwmon/shtc1.c b/drivers/hwmon/shtc1.c index 1f96e94967ee..439dd3dba5fc 100644 --- a/drivers/hwmon/shtc1.c +++ b/drivers/hwmon/shtc1.c @@ -238,7 +238,7 @@ static int shtc1_probe(struct i2c_client *client) if (np) { data->setup.blocking_io = of_property_read_bool(np, "sensirion,blocking-io"); - data->setup.high_precision = !of_property_read_bool(np, "sensicon,low-precision"); + data->setup.high_precision = !of_property_read_bool(np, "sensirion,low-precision"); } else { if (client->dev.platform_data) data->setup = *(struct shtc1_platform_data *)dev->platform_data;
The property name is "sensirion,low-precision", not "sensicon,low-precision". Cc: Chris Ruehl <chris.ruehl@gtsys.com.hk> Fixes: be7373b60df5 ("hwmon: shtc1: add support for device tree bindings") Signed-off-by: Guenter Roeck <linux@roeck-us.net> --- drivers/hwmon/shtc1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)