Skip to content

Commit

Permalink
hwmon: (stts751) Add "st" vendor prefix to "stts751" compatible string
Browse files Browse the repository at this point in the history
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) <[email protected]>
Message-ID: <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>
  • Loading branch information
robherring authored and groeck committed Aug 27, 2024
1 parent b6964d6 commit 0830d3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hwmon/stts751.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0830d3b

Please sign in to comment.