difos/target/linux/bcm27xx/patches-6.12/950-0500-hwmon-adt7410-Add-DT-compatible-strings.patch
Álvaro Fernández Rojas 8f9e91ad03 bcm27xx: add 6.12 patches from RPi repo
These patches were generated from:
https://github.com/raspberrypi/linux/commits/rpi-6.12.y
With the following command:
git format-patch -N v6.12.27..HEAD
(HEAD -> 8d3206ee456a5ecdf9ddbfd8e5e231e4f0cd716e)

Exceptions:
- (def)configs patches
- github workflows patches
- applied & reverted patches
- readme patches
- wireless patches

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2025-05-21 11:32:18 +02:00

30 lines
879 B
Diff

From 76f7dacc5afe1b0a8eacc1788199b783a4d6ade3 Mon Sep 17 00:00:00 2001
From: Phil Elwell <phil@raspberrypi.com>
Date: Wed, 31 Jul 2024 15:02:47 +0100
Subject: [PATCH] hwmon: (adt7410) Add DT compatible strings
Signed-off-by: Phil Elwell <phil@raspberrypi.com>
---
drivers/hwmon/adt7410.c | 8 ++++++++
1 file changed, 8 insertions(+)
--- a/drivers/hwmon/adt7410.c
+++ b/drivers/hwmon/adt7410.c
@@ -94,9 +94,17 @@ static const struct i2c_device_id adt741
};
MODULE_DEVICE_TABLE(i2c, adt7410_ids);
+static const struct of_device_id adt7410_of_ids[] = {
+ { .compatible = "adi,adt7410" },
+ { .compatible = "adi,adt7420" },
+ {}
+};
+MODULE_DEVICE_TABLE(of, adt7410_of_ids);
+
static struct i2c_driver adt7410_driver = {
.driver = {
.name = "adt7410",
+ .of_match_table = adt7410_of_ids,
.pm = pm_sleep_ptr(&adt7x10_dev_pm_ops),
},
.probe = adt7410_i2c_probe,