Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 219119
b: refs/heads/master
c: aac2353
h: refs/heads/master
i:
  219117: 3a2cbc4
  219115: f4fbb33
  219111: d4216cf
  219103: 9b4139b
v: v3
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Oct 21, 2010
1 parent 130c769 commit a586daa
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 720d916e64a1bd70948b0a7e97ba0fff0e2f43d1
refs/heads/master: aac235384de6566bba363c3988c1a214d7121627
33 changes: 24 additions & 9 deletions trunk/drivers/media/video/saa7115.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
#include <media/v4l2-device.h>
#include <media/v4l2-ctrls.h>
#include <media/v4l2-chip-ident.h>
#include <media/v4l2-i2c-drv.h>
#include <media/saa7115.h>
#include <asm/div64.h>

Expand Down Expand Up @@ -1676,7 +1675,7 @@ static int saa711x_remove(struct i2c_client *client)
return 0;
}

static const struct i2c_device_id saa7115_id[] = {
static const struct i2c_device_id saa711x_id[] = {
{ "saa7115_auto", 1 }, /* autodetect */
{ "saa7111", 0 },
{ "saa7113", 0 },
Expand All @@ -1685,11 +1684,27 @@ static const struct i2c_device_id saa7115_id[] = {
{ "saa7118", 0 },
{ }
};
MODULE_DEVICE_TABLE(i2c, saa7115_id);

static struct v4l2_i2c_driver_data v4l2_i2c_data = {
.name = "saa7115",
.probe = saa711x_probe,
.remove = saa711x_remove,
.id_table = saa7115_id,
MODULE_DEVICE_TABLE(i2c, saa711x_id);

static struct i2c_driver saa711x_driver = {
.driver = {
.owner = THIS_MODULE,
.name = "saa7115",
},
.probe = saa711x_probe,
.remove = saa711x_remove,
.id_table = saa711x_id,
};

static __init int init_saa711x(void)
{
return i2c_add_driver(&saa711x_driver);
}

static __exit void exit_saa711x(void)
{
i2c_del_driver(&saa711x_driver);
}

module_init(init_saa711x);
module_exit(exit_saa711x);

0 comments on commit a586daa

Please sign in to comment.