mirror of
https://github.com/Ysurac/openmptcprouter.git
synced 2025-03-09 15:40:20 +00:00
Add a directory by kernel instead of a common root, add qnap-301w and rpi4 kernel 6.1 suppport
This commit is contained in:
parent
e910436a7a
commit
46837ec4c0
9459 changed files with 362648 additions and 116345 deletions
|
|
@ -0,0 +1,34 @@
|
|||
From f3bf6070572239e428bd78080a393de82751bdf4 Mon Sep 17 00:00:00 2001
|
||||
From: Phil Elwell <phil@raspberrypi.com>
|
||||
Date: Tue, 7 Mar 2023 12:12:36 +0000
|
||||
Subject: [PATCH 607/726] hwmon: (ds1621) Add DT compatible strings
|
||||
|
||||
Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
||||
---
|
||||
drivers/hwmon/ds1621.c | 10 ++++++++++
|
||||
1 file changed, 10 insertions(+)
|
||||
|
||||
diff --git a/drivers/hwmon/ds1621.c b/drivers/hwmon/ds1621.c
|
||||
index 0886abf6ebab..1288e35aa1f8 100644
|
||||
--- a/drivers/hwmon/ds1621.c
|
||||
+++ b/drivers/hwmon/ds1621.c
|
||||
@@ -378,6 +378,16 @@ static const struct i2c_device_id ds1621_id[] = {
|
||||
};
|
||||
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 = {
|
||||
.class = I2C_CLASS_HWMON,
|
||||
--
|
||||
2.33.1
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue