hwmon: (lm90) Add compatible entry for adt7481
authorSlawomir Stepien <slawomir.stepien@nokia.com>
Wed, 25 May 2022 07:36:53 +0000 (09:36 +0200)
committerGuenter 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

index f54227a..85d35cc 100644 (file)
@@ -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
        },