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/wm8739.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/wm8739.c')
-rw-r--r-- | drivers/media/video/wm8739.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/media/video/wm8739.c b/drivers/media/video/wm8739.c index a9b59c35cd67..8f6741a28a47 100644 --- a/drivers/media/video/wm8739.c +++ b/drivers/media/video/wm8739.c | |||
@@ -29,6 +29,7 @@ | |||
29 | #include <linux/i2c-id.h> | 29 | #include <linux/i2c-id.h> |
30 | #include <linux/videodev.h> | 30 | #include <linux/videodev.h> |
31 | #include <media/v4l2-common.h> | 31 | #include <media/v4l2-common.h> |
32 | #include <media/v4l2-chip-ident.h> | ||
32 | 33 | ||
33 | MODULE_DESCRIPTION("wm8739 driver"); | 34 | MODULE_DESCRIPTION("wm8739 driver"); |
34 | MODULE_AUTHOR("T. Adachi, Hans Verkuil"); | 35 | MODULE_AUTHOR("T. Adachi, Hans Verkuil"); |
@@ -236,6 +237,9 @@ static int wm8739_command(struct i2c_client *client, unsigned int cmd, void *arg | |||
236 | return -EINVAL; | 237 | return -EINVAL; |
237 | } | 238 | } |
238 | 239 | ||
240 | case VIDIOC_G_CHIP_IDENT: | ||
241 | return v4l2_chip_ident_i2c_client(client, arg, V4L2_IDENT_WM8739, 0); | ||
242 | |||
239 | case VIDIOC_LOG_STATUS: | 243 | case VIDIOC_LOG_STATUS: |
240 | v4l_info(client, "Frequency: %u Hz\n", state->clock_freq); | 244 | v4l_info(client, "Frequency: %u Hz\n", state->clock_freq); |
241 | v4l_info(client, "Volume L: %02x%s\n", state->vol_l & 0x1f, | 245 | v4l_info(client, "Volume L: %02x%s\n", state->vol_l & 0x1f, |