diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2007-04-27 11:31:26 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-04-27 14:43:50 -0400 |
commit | 74cab31c413c8615efe818d44ff4ac83e2a138be (patch) | |
tree | 036e32f1b1a928901f6f2ab4b9921c39aa8de82c /drivers/media/video/upd64031a.c | |
parent | 1a0adaf37c30e89e44d1470ef604a930999a5826 (diff) |
V4L/DVB (5355): Add VIDIOC_G_CHIP_IDENT to various i2c modules
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/upd64031a.c')
-rw-r--r-- | drivers/media/video/upd64031a.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/media/video/upd64031a.c b/drivers/media/video/upd64031a.c index 28d1133a3b7a..0b2a961efd22 100644 --- a/drivers/media/video/upd64031a.c +++ b/drivers/media/video/upd64031a.c | |||
@@ -27,6 +27,7 @@ | |||
27 | #include <linux/i2c.h> | 27 | #include <linux/i2c.h> |
28 | #include <linux/videodev2.h> | 28 | #include <linux/videodev2.h> |
29 | #include <media/v4l2-common.h> | 29 | #include <media/v4l2-common.h> |
30 | #include <media/v4l2-chip-ident.h> | ||
30 | #include <media/upd64031a.h> | 31 | #include <media/upd64031a.h> |
31 | 32 | ||
32 | // --------------------- read registers functions define ----------------------- | 33 | // --------------------- read registers functions define ----------------------- |
@@ -179,6 +180,9 @@ static int upd64031a_command(struct i2c_client *client, unsigned int cmd, void * | |||
179 | } | 180 | } |
180 | #endif | 181 | #endif |
181 | 182 | ||
183 | case VIDIOC_G_CHIP_IDENT: | ||
184 | return v4l2_chip_ident_i2c_client(client, arg, V4L2_IDENT_UPD64031A, 0); | ||
185 | |||
182 | default: | 186 | default: |
183 | break; | 187 | break; |
184 | } | 188 | } |