Commit 11f26b68 authored by Felipe Balbi's avatar Felipe Balbi Committed by Tony Lindgren

I2C: TSL2563: Add i2c_device_id

Add i2c_device_id to tsl2563.
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 5f6f0145
...@@ -595,7 +595,8 @@ static void tsl2563_unregister_sysfs(struct i2c_client *client) ...@@ -595,7 +595,8 @@ static void tsl2563_unregister_sysfs(struct i2c_client *client)
/*--------------------------------------------------------------*/ /*--------------------------------------------------------------*/
static struct i2c_driver tsl2563_i2c_driver; static struct i2c_driver tsl2563_i2c_driver;
static int tsl2563_probe(struct i2c_client *client) static int tsl2563_probe(struct i2c_client *client,
const struct i2c_device_id *device_id)
{ {
struct tsl2563_chip *chip; struct tsl2563_chip *chip;
int err = 0; int err = 0;
...@@ -703,6 +704,12 @@ out: ...@@ -703,6 +704,12 @@ out:
return ret; return ret;
} }
static const struct i2c_device_id tsl2563_id[] = {
{ DRIVER_NAME, 0 },
{ },
};
MODULE_DEVICE_TABLE(i2c, tsl2563_id);
static struct i2c_driver tsl2563_i2c_driver = { static struct i2c_driver tsl2563_i2c_driver = {
.driver = { .driver = {
.name = DRIVER_NAME, .name = DRIVER_NAME,
......
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