projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f076912
)
hwmon: (lm90) Add compatible entry for adt7481
author
Slawomir Stepien
<slawomir.stepien@nokia.com>
Wed, 25 May 2022 07:36:53 +0000
(09:36 +0200)
committer
Guenter Roeck
<linux@roeck-us.net>
Wed, 13 Jul 2022 15:38:19 +0000
(08:38 -0700)
This will allow binding the driver with the device from the device tree.
Signed-off-by: Slawomir Stepien <slawomir.stepien@nokia.com>
Link:
https://lore.kernel.org/r/20220525073657.573327-4-sst@poczta.fm
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/lm90.c
patch
|
blob
|
history
diff --git
a/drivers/hwmon/lm90.c
b/drivers/hwmon/lm90.c
index
f54227a
..
85d35cc
100644
(file)
--- a/
drivers/hwmon/lm90.c
+++ b/
drivers/hwmon/lm90.c
@@
-295,6
+295,10
@@
static const struct of_device_id __maybe_unused lm90_of_match[] = {
.data = (void *)adt7461a
},
{
+ .compatible = "adi,adt7481",
+ .data = (void *)adt7481
+ },
+ {
.compatible = "gmt,g781",
.data = (void *)g781
},