1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter.git synced 2025-02-15 04:42:02 +00:00
openmptcprouter/6.6/target/linux/bcm27xx/patches-6.6/0421-iio-light-tsl4531-Add-DT-compatible-string.patch
Ycarus (Yannick Chabanois) 12de1d2995 Add RPI kernel 6.6 support
2024-04-05 20:55:33 +02:00

34 lines
1,003 B
Diff

From 046f8527481162a4d5fc47cc7bdfafc9e99092dc Mon Sep 17 00:00:00 2001
From: Phil Elwell <phil@raspberrypi.com>
Date: Tue, 7 Mar 2023 21:48:54 +0000
Subject: [PATCH 0421/1002] iio: light: tsl4531: Add DT compatible string
Signed-off-by: Phil Elwell <phil@raspberrypi.com>
---
drivers/iio/light/tsl4531.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/drivers/iio/light/tsl4531.c b/drivers/iio/light/tsl4531.c
index 4da7d78906d4..39a6b1f8fe99 100644
--- a/drivers/iio/light/tsl4531.c
+++ b/drivers/iio/light/tsl4531.c
@@ -232,9 +232,16 @@ static const struct i2c_device_id tsl4531_id[] = {
};
MODULE_DEVICE_TABLE(i2c, tsl4531_id);
+static const struct of_device_id tsl4531_of_id[] = {
+ { .compatible = "amstaos,tsl4531" },
+ { }
+};
+MODULE_DEVICE_TABLE(of, tsl4531_of_id);
+
static struct i2c_driver tsl4531_driver = {
.driver = {
.name = TSL4531_DRV_NAME,
+ .of_match_table = tsl4531_of_id,
.pm = pm_sleep_ptr(&tsl4531_pm_ops),
},
.probe = tsl4531_probe,
--
2.44.0