mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-07-23 17:47:28 +08:00

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>
41 lines
1.1 KiB
Diff
41 lines
1.1 KiB
Diff
From 8256c8edffc0403d9f91083c8d56729e7a0906e0 Mon Sep 17 00:00:00 2001
|
|
From: Phil Elwell <phil@raspberrypi.com>
|
|
Date: Tue, 7 Mar 2023 21:47:58 +0000
|
|
Subject: [PATCH] hwmon: (sht3x) Add DT compatible string
|
|
|
|
Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
|
---
|
|
drivers/hwmon/sht3x.c | 16 ++++++++--------
|
|
1 file changed, 8 insertions(+), 8 deletions(-)
|
|
|
|
--- a/drivers/hwmon/sht3x.c
|
|
+++ b/drivers/hwmon/sht3x.c
|
|
@@ -954,19 +954,19 @@ static int sht3x_probe(struct i2c_client
|
|
return PTR_ERR_OR_ZERO(hwmon_dev);
|
|
}
|
|
|
|
-/* device ID table */
|
|
-static const struct i2c_device_id sht3x_ids[] = {
|
|
- {"sht3x", sht3x},
|
|
- {"sts3x", sts3x},
|
|
+static const struct of_device_id sht3x_of_ids[] = {
|
|
+ { .compatible = "sensirion,sht3x" },
|
|
+ { .compatible = "sensirion,sts3x" },
|
|
{}
|
|
};
|
|
-
|
|
-MODULE_DEVICE_TABLE(i2c, sht3x_ids);
|
|
+MODULE_DEVICE_TABLE(of, sht3x_of_ids);
|
|
|
|
static struct i2c_driver sht3x_i2c_driver = {
|
|
- .driver.name = "sht3x",
|
|
+ .driver = {
|
|
+ .name = "sht3x",
|
|
+ .of_match_table = sht3x_of_ids,
|
|
+ },
|
|
.probe = sht3x_probe,
|
|
- .id_table = sht3x_ids,
|
|
};
|
|
|
|
static int __init sht3x_init(void)
|