projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1229457
)
Input: ili210x - add OF match table
author
Marek Vasut
<
[email protected]
>
Thu, 7 Feb 2019 06:01:51 +0000
(22:01 -0800)
committer
Dmitry Torokhov
<
[email protected]
>
Thu, 7 Feb 2019 06:18:15 +0000
(22:18 -0800)
Add OF match table for the ili210x touchscreen.
Signed-off-by: Marek Vasut <
[email protected]
>
Signed-off-by: Dmitry Torokhov <
[email protected]
>
drivers/input/touchscreen/ili210x.c
patch
|
blob
|
history
diff --git
a/drivers/input/touchscreen/ili210x.c
b/drivers/input/touchscreen/ili210x.c
index ba263458236474e2d52a48d7a2e80a43a2b3e7c4..4e550fe0cb15a7cfab93a1224704761c277c9fad 100644
(file)
--- a/
drivers/input/touchscreen/ili210x.c
+++ b/
drivers/input/touchscreen/ili210x.c
@@
-352,10
+352,17
@@
static const struct i2c_device_id ili210x_i2c_id[] = {
};
MODULE_DEVICE_TABLE(i2c, ili210x_i2c_id);
+static const struct of_device_id ili210x_dt_ids[] = {
+ { .compatible = "ilitek,ili210x", },
+ { },
+};
+MODULE_DEVICE_TABLE(of, ili210x_dt_ids);
+
static struct i2c_driver ili210x_ts_driver = {
.driver = {
.name = "ili210x_i2c",
.pm = &ili210x_i2c_pm,
+ .of_match_table = ili210x_dt_ids,
},
.id_table = ili210x_i2c_id,
.probe = ili210x_i2c_probe,