Commit 0b80905e authored by Felipe Balbi's avatar Felipe Balbi Committed by Tony Lindgren

I2C: RADIO: TEA5761: Add i2c_device_id

Add i2c_device_id to tea5761.
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 5744c1eb
...@@ -413,7 +413,8 @@ static struct video_device tea5761_video_device = { ...@@ -413,7 +413,8 @@ static struct video_device tea5761_video_device = {
.release = video_device_release .release = video_device_release
}; };
static int tea5761_i2c_driver_probe(struct i2c_client *client) static int tea5761_i2c_driver_probe(struct i2c_client *client,
const struct i2c_device_id *id)
{ {
struct video_device *video_dev; struct video_device *video_dev;
int err = 0; int err = 0;
...@@ -472,6 +473,12 @@ static int tea5761_i2c_driver_remove(struct i2c_client *client) ...@@ -472,6 +473,12 @@ static int tea5761_i2c_driver_remove(struct i2c_client *client)
return 0; return 0;
} }
static const struct i2c_device_id tea5761_id[] = {
{ DRIVER_NAME, 0 },
{ },
};
MODULE_DEVICE_TABLE(i2c, tea5761_id);
static struct i2c_driver tea5761_driver = { static struct i2c_driver tea5761_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