aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2019-02-07 01:01:51 -0500
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2019-02-07 01:18:15 -0500
commitc5d0e4b5154ac81cffdf6472d5f5e1408faa8ccd (patch)
tree280b0c0f5437127372cbbe680049436d3a794bf6 /drivers/input
parent122945776271efee91012c2a345b720d39b15b7c (diff)
Input: ili210x - add OF match table
Add OF match table for the ili210x touchscreen. Signed-off-by: Marek Vasut <marex@denx.de> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/touchscreen/ili210x.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/input/touchscreen/ili210x.c b/drivers/input/touchscreen/ili210x.c
index ba2634582364..4e550fe0cb15 100644
--- 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[] = {
352}; 352};
353MODULE_DEVICE_TABLE(i2c, ili210x_i2c_id); 353MODULE_DEVICE_TABLE(i2c, ili210x_i2c_id);
354 354
355static const struct of_device_id ili210x_dt_ids[] = {
356 { .compatible = "ilitek,ili210x", },
357 { },
358};
359MODULE_DEVICE_TABLE(of, ili210x_dt_ids);
360
355static struct i2c_driver ili210x_ts_driver = { 361static struct i2c_driver ili210x_ts_driver = {
356 .driver = { 362 .driver = {
357 .name = "ili210x_i2c", 363 .name = "ili210x_i2c",
358 .pm = &ili210x_i2c_pm, 364 .pm = &ili210x_i2c_pm,
365 .of_match_table = ili210x_dt_ids,
359 }, 366 },
360 .id_table = ili210x_i2c_id, 367 .id_table = ili210x_i2c_id,
361 .probe = ili210x_i2c_probe, 368 .probe = ili210x_i2c_probe,