]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
hwmon: (shtc1) Fix property misspelling
authorGuenter Roeck <linux@roeck-us.net>
Thu, 30 May 2024 15:20:14 +0000 (08:20 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Jun 2024 11:32:29 +0000 (13:32 +0200)
[ Upstream commit 52a2c70c3ec555e670a34dd1ab958986451d2dd2 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hwmon/shtc1.c

index 18546ebc8e9f7710edba6c782f6cfc02ff650699..0365643029aeef556bb9d85f5919d3bdd933edb2 100644 (file)
@@ -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;