Skip to contentSkip to conversation

hwmon: stts751: Add "st" vendor prefix to "stts751" compatible string

PATCH Applied Rob Herring (Arm) 2 participants 2 messages Aug 26, 2024 – Aug 27, 2024 Hardware monitoring

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hwmon: stts751: Add "st" vendor prefix to "stts751" compatible string

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.

---
 drivers/hwmon/stts751.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/stts751.c +1 -1
index e7632081a1d1..f9e8b2869164 100644
@@ -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);
Signature · 1 line
2.43.0
maintainer Applied
#1 lore raw
Quoted 6 lines · Rob Herring (Arm)

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.

Applied.

Thanks,
Guenter