diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2009-01-17 10:17:14 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-30 11:42:22 -0400 |
commit | fac6986c4777ae85fa2108ea25fee98de2c1f7b2 (patch) | |
tree | 477119cf15d50bcc548ddd6e6ba15eb69e311d23 /drivers/media/video/saa7134/saa6752hs.c | |
parent | 5b73e98c83fc5087f591c9b12ee546b97e9283d4 (diff) |
V4L/DVB (10247): saa7134: convert to the new v4l2 framework.
Register v4l2_device and switch to v4l2_subdev to access the i2c modules.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/saa7134/saa6752hs.c')
-rw-r--r-- | drivers/media/video/saa7134/saa6752hs.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/media/video/saa7134/saa6752hs.c b/drivers/media/video/saa7134/saa6752hs.c index 25e6ab28a0a3..2d292ad776e9 100644 --- a/drivers/media/video/saa7134/saa6752hs.c +++ b/drivers/media/video/saa7134/saa6752hs.c | |||
@@ -36,7 +36,7 @@ | |||
36 | #include <media/v4l2-device.h> | 36 | #include <media/v4l2-device.h> |
37 | #include <media/v4l2-common.h> | 37 | #include <media/v4l2-common.h> |
38 | #include <media/v4l2-chip-ident.h> | 38 | #include <media/v4l2-chip-ident.h> |
39 | #include <media/v4l2-i2c-drv-legacy.h> | 39 | #include <media/v4l2-i2c-drv.h> |
40 | #include <linux/init.h> | 40 | #include <linux/init.h> |
41 | #include <linux/crc32.h> | 41 | #include <linux/crc32.h> |
42 | 42 | ||
@@ -45,10 +45,6 @@ | |||
45 | #define MPEG_TOTAL_TARGET_BITRATE_MAX 27000 | 45 | #define MPEG_TOTAL_TARGET_BITRATE_MAX 27000 |
46 | #define MPEG_PID_MAX ((1 << 14) - 1) | 46 | #define MPEG_PID_MAX ((1 << 14) - 1) |
47 | 47 | ||
48 | /* Addresses to scan */ | ||
49 | static unsigned short normal_i2c[] = {0x20, I2C_CLIENT_END}; | ||
50 | |||
51 | I2C_CLIENT_INSMOD; | ||
52 | 48 | ||
53 | MODULE_DESCRIPTION("device driver for saa6752hs MPEG2 encoder"); | 49 | MODULE_DESCRIPTION("device driver for saa6752hs MPEG2 encoder"); |
54 | MODULE_AUTHOR("Andrew de Quincey"); | 50 | MODULE_AUTHOR("Andrew de Quincey"); |
@@ -914,11 +910,6 @@ static int saa6752hs_g_chip_ident(struct v4l2_subdev *sd, struct v4l2_dbg_chip_i | |||
914 | chip, h->chip, h->revision); | 910 | chip, h->chip, h->revision); |
915 | } | 911 | } |
916 | 912 | ||
917 | static int saa6752hs_command(struct i2c_client *client, unsigned cmd, void *arg) | ||
918 | { | ||
919 | return v4l2_subdev_command(i2c_get_clientdata(client), cmd, arg); | ||
920 | } | ||
921 | |||
922 | /* ----------------------------------------------------------------------- */ | 913 | /* ----------------------------------------------------------------------- */ |
923 | 914 | ||
924 | static const struct v4l2_subdev_core_ops saa6752hs_core_ops = { | 915 | static const struct v4l2_subdev_core_ops saa6752hs_core_ops = { |
@@ -993,8 +984,6 @@ MODULE_DEVICE_TABLE(i2c, saa6752hs_id); | |||
993 | 984 | ||
994 | static struct v4l2_i2c_driver_data v4l2_i2c_data = { | 985 | static struct v4l2_i2c_driver_data v4l2_i2c_data = { |
995 | .name = "saa6752hs", | 986 | .name = "saa6752hs", |
996 | .driverid = I2C_DRIVERID_SAA6752HS, | ||
997 | .command = saa6752hs_command, | ||
998 | .probe = saa6752hs_probe, | 987 | .probe = saa6752hs_probe, |
999 | .remove = saa6752hs_remove, | 988 | .remove = saa6752hs_remove, |
1000 | .id_table = saa6752hs_id, | 989 | .id_table = saa6752hs_id, |