]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
hwmon: (stts751) Add "st" vendor prefix to "stts751" compatible string
authorRob Herring (Arm) <robh@kernel.org>
Mon, 26 Aug 2024 19:18:11 +0000 (14:18 -0500)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 27 Aug 2024 15:10:23 +0000 (08:10 -0700)
The documented compatible string is "st,stts751", not "stts751". Even if
"stts751" was in use, there's no need to list "stts751" in the DT match
table. The I2C core will strip any vendor prefix and match against the
i2c_device_id table which has an "stts751" entry.

Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Message-ID: <20240826191811.1416011-1-robh@kernel.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/stts751.c

index e7632081a1d1458c697d83b1f7f7d7367e9cadbd..f9e8b2869164a3a35b291cee489e03278382ca81 100644 (file)
@@ -77,7 +77,7 @@ static const struct i2c_device_id stts751_id[] = {
 };
 
 static const struct of_device_id __maybe_unused stts751_of_match[] = {
-       { .compatible = "stts751" },
+       { .compatible = "st,stts751" },
        { },
 };
 MODULE_DEVICE_TABLE(of, stts751_of_match);