1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter.git synced 2025-03-09 15:40:20 +00:00
openmptcprouter/6.12/target/linux/bcm27xx/patches-6.12/950-0311-hwmon-ds1621-Add-DT-compatible-strings.patch
Ycarus (Yannick Chabanois) bdb9b0046f Add bcm27xx 6.12 test support
2024-12-20 14:17:26 +01:00

29 lines
913 B
Diff

From 24e6696900f74b4de806f7f092c99e31cdf30d38 Mon Sep 17 00:00:00 2001
From: Phil Elwell <phil@raspberrypi.com>
Date: Tue, 7 Mar 2023 12:12:36 +0000
Subject: [PATCH 311/697] 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 = {