Files
openwrt-armor-g5/target/linux/bcm27xx/patches-6.6/950-0421-iio-light-tsl4531-Add-DT-compatible-string.patch
domenico 27c9d80f51
Some checks failed
Build Kernel / Build all affected Kernels (push) Has been cancelled
Build all core packages / Build all core packages for selected target (push) Has been cancelled
Build and Push prebuilt tools container / Build and Push all prebuilt containers (push) Has been cancelled
Build Toolchains / Build Toolchains for each target (push) Has been cancelled
Build host tools / Build host tools for linux and macos based systems (push) Has been cancelled
Coverity scan build / Coverity x86/64 build (push) Has been cancelled
Initial commit
2025-06-24 12:51:15 +02:00

30 lines
870 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/1085] 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(+)
--- a/drivers/iio/light/tsl4531.c
+++ b/drivers/iio/light/tsl4531.c
@@ -232,9 +232,16 @@ static const struct i2c_device_id tsl453
};
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,