Commit e32d7f1b authored by Daniel Mack's avatar Daniel Mack Committed by Dmitry Torokhov

Input: eeti - add device tree matching table

Provide a match table so that the driver can be used in devicetree setups.
More properties are added in a later patch.
Signed-off-by: default avatarDaniel Mack <daniel@zonque.org>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 7f40a478
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
#include <linux/i2c.h> #include <linux/i2c.h>
#include <linux/timer.h> #include <linux/timer.h>
#include <linux/gpio/consumer.h> #include <linux/gpio/consumer.h>
#include <linux/of.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <asm/unaligned.h> #include <asm/unaligned.h>
...@@ -262,10 +263,18 @@ static const struct i2c_device_id eeti_ts_id[] = { ...@@ -262,10 +263,18 @@ static const struct i2c_device_id eeti_ts_id[] = {
}; };
MODULE_DEVICE_TABLE(i2c, eeti_ts_id); MODULE_DEVICE_TABLE(i2c, eeti_ts_id);
#ifdef CONFIG_OF
static const struct of_device_id of_eeti_ts_match[] = {
{ .compatible = "eeti,exc3000-i2c", },
{ }
};
#endif
static struct i2c_driver eeti_ts_driver = { static struct i2c_driver eeti_ts_driver = {
.driver = { .driver = {
.name = "eeti_ts", .name = "eeti_ts",
.pm = &eeti_ts_pm, .pm = &eeti_ts_pm,
.of_match_table = of_match_ptr(of_eeti_ts_match),
}, },
.probe = eeti_ts_probe, .probe = eeti_ts_probe,
.id_table = eeti_ts_id, .id_table = eeti_ts_id,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment