diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2009-02-19 15:41:19 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-30 11:42:59 -0400 |
commit | 2d26698e859994d4febb2d27b055bdc37d8e368e (patch) | |
tree | 86c241c67fc785dffc96cbe2c409a3636a99bca0 /drivers/media/video/ks0127.c | |
parent | 7f6adeaf2d8800b66c5dd6c2cf2622dfdd68bd31 (diff) |
V4L/DVB (10731): zoran i2c modules: remove i2c autoprobing support.
Zoran doesn't do autoprobing anymore, so remove support for this from 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/ks0127.c')
-rw-r--r-- | drivers/media/video/ks0127.c | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/drivers/media/video/ks0127.c b/drivers/media/video/ks0127.c index 07c79250f8fd..678c4e23f0e8 100644 --- a/drivers/media/video/ks0127.c +++ b/drivers/media/video/ks0127.c | |||
@@ -42,24 +42,17 @@ | |||
42 | #include <linux/videodev2.h> | 42 | #include <linux/videodev2.h> |
43 | #include <media/v4l2-device.h> | 43 | #include <media/v4l2-device.h> |
44 | #include <media/v4l2-chip-ident.h> | 44 | #include <media/v4l2-chip-ident.h> |
45 | #include <media/v4l2-i2c-drv-legacy.h> | 45 | #include <media/v4l2-i2c-drv.h> |
46 | #include "ks0127.h" | 46 | #include "ks0127.h" |
47 | 47 | ||
48 | MODULE_DESCRIPTION("KS0127 video decoder driver"); | 48 | MODULE_DESCRIPTION("KS0127 video decoder driver"); |
49 | MODULE_AUTHOR("Ryan Drake"); | 49 | MODULE_AUTHOR("Ryan Drake"); |
50 | MODULE_LICENSE("GPL"); | 50 | MODULE_LICENSE("GPL"); |
51 | 51 | ||
52 | /* Addresses to scan */ | 52 | /* Addresses */ |
53 | #define I2C_KS0127_ADDON 0xD8 | 53 | #define I2C_KS0127_ADDON 0xD8 |
54 | #define I2C_KS0127_ONBOARD 0xDA | 54 | #define I2C_KS0127_ONBOARD 0xDA |
55 | 55 | ||
56 | static unsigned short normal_i2c[] = { | ||
57 | I2C_KS0127_ADDON >> 1, | ||
58 | I2C_KS0127_ONBOARD >> 1, | ||
59 | I2C_CLIENT_END | ||
60 | }; | ||
61 | |||
62 | I2C_CLIENT_INSMOD; | ||
63 | 56 | ||
64 | /* ks0127 control registers */ | 57 | /* ks0127 control registers */ |
65 | #define KS_STAT 0x00 | 58 | #define KS_STAT 0x00 |
@@ -650,11 +643,6 @@ static int ks0127_g_chip_ident(struct v4l2_subdev *sd, struct v4l2_dbg_chip_iden | |||
650 | return v4l2_chip_ident_i2c_client(client, chip, ks->ident, 0); | 643 | return v4l2_chip_ident_i2c_client(client, chip, ks->ident, 0); |
651 | } | 644 | } |
652 | 645 | ||
653 | static int ks0127_command(struct i2c_client *client, unsigned cmd, void *arg) | ||
654 | { | ||
655 | return v4l2_subdev_command(i2c_get_clientdata(client), cmd, arg); | ||
656 | } | ||
657 | |||
658 | /* ----------------------------------------------------------------------- */ | 646 | /* ----------------------------------------------------------------------- */ |
659 | 647 | ||
660 | static const struct v4l2_subdev_core_ops ks0127_core_ops = { | 648 | static const struct v4l2_subdev_core_ops ks0127_core_ops = { |
@@ -717,11 +705,6 @@ static int ks0127_remove(struct i2c_client *client) | |||
717 | return 0; | 705 | return 0; |
718 | } | 706 | } |
719 | 707 | ||
720 | static int ks0127_legacy_probe(struct i2c_adapter *adapter) | ||
721 | { | ||
722 | return adapter->id == I2C_HW_B_ZR36067; | ||
723 | } | ||
724 | |||
725 | static const struct i2c_device_id ks0127_id[] = { | 708 | static const struct i2c_device_id ks0127_id[] = { |
726 | { "ks0127", 0 }, | 709 | { "ks0127", 0 }, |
727 | { "ks0127b", 0 }, | 710 | { "ks0127b", 0 }, |
@@ -732,10 +715,7 @@ MODULE_DEVICE_TABLE(i2c, ks0127_id); | |||
732 | 715 | ||
733 | static struct v4l2_i2c_driver_data v4l2_i2c_data = { | 716 | static struct v4l2_i2c_driver_data v4l2_i2c_data = { |
734 | .name = "ks0127", | 717 | .name = "ks0127", |
735 | .driverid = I2C_DRIVERID_KS0127, | ||
736 | .command = ks0127_command, | ||
737 | .probe = ks0127_probe, | 718 | .probe = ks0127_probe, |
738 | .remove = ks0127_remove, | 719 | .remove = ks0127_remove, |
739 | .legacy_probe = ks0127_legacy_probe, | ||
740 | .id_table = ks0127_id, | 720 | .id_table = ks0127_id, |
741 | }; | 721 | }; |