aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2009-03-28 08:32:42 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-03-30 11:43:44 -0400
commit5fed935c4ea98923f4ddbffa29134be5f30e4b2c (patch)
treed2431b24e0a330ed4ff679374f755c6d9a2fed90
parent195784b8efd53c1034c6b6d5c8d8d4d25b91d505 (diff)
V4L/DVB (11254): cs53l32a: remove legacy support.
All drivers that use this device have been converted to v4l2_subdev, so there is no more need to support autoprobing on kernels >= 2.6.22. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/video/cs53l32a.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/drivers/media/video/cs53l32a.c b/drivers/media/video/cs53l32a.c
index 2f33abd2e01c..5aeb066857a7 100644
--- a/drivers/media/video/cs53l32a.c
+++ b/drivers/media/video/cs53l32a.c
@@ -29,7 +29,7 @@
29#include <linux/videodev2.h> 29#include <linux/videodev2.h>
30#include <media/v4l2-device.h> 30#include <media/v4l2-device.h>
31#include <media/v4l2-chip-ident.h> 31#include <media/v4l2-chip-ident.h>
32#include <media/v4l2-i2c-drv-legacy.h> 32#include <media/v4l2-i2c-drv.h>
33 33
34MODULE_DESCRIPTION("i2c device driver for cs53l32a Audio ADC"); 34MODULE_DESCRIPTION("i2c device driver for cs53l32a Audio ADC");
35MODULE_AUTHOR("Martin Vaughan"); 35MODULE_AUTHOR("Martin Vaughan");
@@ -41,9 +41,6 @@ module_param(debug, bool, 0644);
41 41
42MODULE_PARM_DESC(debug, "Debugging messages, 0=Off (default), 1=On"); 42MODULE_PARM_DESC(debug, "Debugging messages, 0=Off (default), 1=On");
43 43
44static unsigned short normal_i2c[] = { 0x22 >> 1, I2C_CLIENT_END };
45
46I2C_CLIENT_INSMOD;
47 44
48/* ----------------------------------------------------------------------- */ 45/* ----------------------------------------------------------------------- */
49 46
@@ -122,11 +119,6 @@ static int cs53l32a_log_status(struct v4l2_subdev *sd)
122 return 0; 119 return 0;
123} 120}
124 121
125static int cs53l32a_command(struct i2c_client *client, unsigned cmd, void *arg)
126{
127 return v4l2_subdev_command(i2c_get_clientdata(client), cmd, arg);
128}
129
130/* ----------------------------------------------------------------------- */ 122/* ----------------------------------------------------------------------- */
131 123
132static const struct v4l2_subdev_core_ops cs53l32a_core_ops = { 124static const struct v4l2_subdev_core_ops cs53l32a_core_ops = {
@@ -218,7 +210,6 @@ MODULE_DEVICE_TABLE(i2c, cs53l32a_id);
218 210
219static struct v4l2_i2c_driver_data v4l2_i2c_data = { 211static struct v4l2_i2c_driver_data v4l2_i2c_data = {
220 .name = "cs53l32a", 212 .name = "cs53l32a",
221 .command = cs53l32a_command,
222 .remove = cs53l32a_remove, 213 .remove = cs53l32a_remove,
223 .probe = cs53l32a_probe, 214 .probe = cs53l32a_probe,
224 .id_table = cs53l32a_id, 215 .id_table = cs53l32a_id,