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 f54227affe09fbc5fcb5ce8212f86fdb702c1ff5..85d35ccb7c44c8fcc1f8181e9adfa6fbd136626b 100644 (file)
@@ -294,6 +294,10 @@ static const struct of_device_id __maybe_unused lm90_of_match[] = {
                .compatible = "adi,adt7461a",
                .data = (void *)adt7461a
        },
+       {
+               .compatible = "adi,adt7481",
+               .data = (void *)adt7481
+       },
        {
                .compatible = "gmt,g781",
                .data = (void *)g781