1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter.git synced 2025-02-15 04:42:02 +00:00
openmptcprouter/6.1/target/linux/bcm27xx/patches-6.1/0611-iio-light-veml6070-Add-DT-compatible-string.patch

34 lines
1,006 B
Diff

From 5359abd2da781b25cda51a356dbc2a369f4c215f Mon Sep 17 00:00:00 2001
From: Phil Elwell <phil@raspberrypi.com>
Date: Tue, 7 Mar 2023 21:49:30 +0000
Subject: [PATCH 611/726] iio: light: veml6070: Add DT compatible string
Signed-off-by: Phil Elwell <phil@raspberrypi.com>
---
drivers/iio/light/veml6070.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/drivers/iio/light/veml6070.c b/drivers/iio/light/veml6070.c
index cfa4e9e7c803..513b1e07042e 100644
--- a/drivers/iio/light/veml6070.c
+++ b/drivers/iio/light/veml6070.c
@@ -195,9 +195,16 @@ static const struct i2c_device_id veml6070_id[] = {
};
MODULE_DEVICE_TABLE(i2c, veml6070_id);
+static const struct of_device_id veml6070_of_id[] = {
+ { .compatible = "vishay,veml6070" },
+ { }
+};
+MODULE_DEVICE_TABLE(of, veml6070_of_id);
+
static struct i2c_driver veml6070_driver = {
.driver = {
.name = VEML6070_DRV_NAME,
+ .of_match_table = veml6070_of_id,
},
.probe = veml6070_probe,
.remove = veml6070_remove,
--
2.33.1