difos/target/linux/bcm27xx/patches-6.12/950-0310-hwmon-ds1621-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

29 lines
905 B
Diff

From e84495b35b7a41ce8325289c3f05b5f1c3ff02f0 Mon Sep 17 00:00:00 2001
From: Phil Elwell <phil@raspberrypi.com>
Date: Tue, 7 Mar 2023 12:12:36 +0000
Subject: [PATCH] hwmon: (ds1621) Add DT compatible strings
Signed-off-by: Phil Elwell <phil@raspberrypi.com>
---
drivers/hwmon/ds1621.c | 10 ++++++++++
1 file changed, 10 insertions(+)
--- a/drivers/hwmon/ds1621.c
+++ b/drivers/hwmon/ds1621.c
@@ -376,6 +376,16 @@ static const struct i2c_device_id ds1621
};
MODULE_DEVICE_TABLE(i2c, ds1621_id);
+static const struct of_device_id ds1621_of_ids[] = {
+ { .compatible = "dallas,ds1621", },
+ { .compatible = "dallas,ds1625", },
+ { .compatible = "dallas,ds1631", },
+ { .compatible = "dallas,ds1721", },
+ { .compatible = "dallas,ds1731", },
+ { }
+};
+MODULE_DEVICE_TABLE(of, ds1621_of_ids);
+
/* This is the driver that will be inserted */
static struct i2c_driver ds1621_driver = {
.driver = {