summaryrefslogtreecommitdiff
path: root/drivers/hwmon
diff options
context:
space:
mode:
authorSlawomir Stepien <slawomir.stepien@nokia.com>2022-05-25 10:36:53 +0300
committerGuenter Roeck <linux@roeck-us.net>2022-07-13 18:38:19 +0300
commitb9e7dfdedbc5309eb516fb11cef4a67543f20fc2 (patch)
tree1e26cafe6411836db59e4ffcecd2a8bd16c82d90 /drivers/hwmon
parentf07691219cff2521e6eace2cb6d3e3d3c589b376 (diff)
downloadlinux-b9e7dfdedbc5309eb516fb11cef4a67543f20fc2.tar.xz
hwmon: (lm90) Add compatible entry for adt7481
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>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r--drivers/hwmon/lm90.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/hwmon/lm90.c b/drivers/hwmon/lm90.c
index f54227affe09..85d35ccb7c44 100644
--- 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
},