aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/indycam.c
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2009-02-18 17:23:43 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-03-30 11:43:11 -0400
commita0720d3b7b80163150fde73aa43ba8fcd417b9cb (patch)
tree81538debd41124764a838544ac6b5d377920aec9 /drivers/media/video/indycam.c
parent48f4dacb6759d6357036e2a37434bf8bade119c9 (diff)
V4L/DVB (10866): saa7191, indycam: remove compat code.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/indycam.c')
-rw-r--r--drivers/media/video/indycam.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/drivers/media/video/indycam.c b/drivers/media/video/indycam.c
index eb5078c07a3..3d6940163b1 100644
--- a/drivers/media/video/indycam.c
+++ b/drivers/media/video/indycam.c
@@ -24,7 +24,7 @@
24#include <linux/i2c.h> 24#include <linux/i2c.h>
25#include <media/v4l2-device.h> 25#include <media/v4l2-device.h>
26#include <media/v4l2-chip-ident.h> 26#include <media/v4l2-chip-ident.h>
27#include <media/v4l2-i2c-drv-legacy.h> 27#include <media/v4l2-i2c-drv.h>
28 28
29#include "indycam.h" 29#include "indycam.h"
30 30
@@ -35,9 +35,6 @@ MODULE_VERSION(INDYCAM_MODULE_VERSION);
35MODULE_AUTHOR("Mikael Nousiainen <tmnousia@cc.hut.fi>"); 35MODULE_AUTHOR("Mikael Nousiainen <tmnousia@cc.hut.fi>");
36MODULE_LICENSE("GPL"); 36MODULE_LICENSE("GPL");
37 37
38static unsigned short normal_i2c[] = { 0x56 >> 1, I2C_CLIENT_END };
39
40I2C_CLIENT_INSMOD;
41 38
42// #define INDYCAM_DEBUG 39// #define INDYCAM_DEBUG
43 40
@@ -297,11 +294,6 @@ static int indycam_g_chip_ident(struct v4l2_subdev *sd,
297 camera->version); 294 camera->version);
298} 295}
299 296
300static int indycam_command(struct i2c_client *client, unsigned cmd, void *arg)
301{
302 return v4l2_subdev_command(i2c_get_clientdata(client), cmd, arg);
303}
304
305/* ----------------------------------------------------------------------- */ 297/* ----------------------------------------------------------------------- */
306 298
307static const struct v4l2_subdev_core_ops indycam_core_ops = { 299static const struct v4l2_subdev_core_ops indycam_core_ops = {
@@ -380,11 +372,6 @@ static int indycam_remove(struct i2c_client *client)
380 return 0; 372 return 0;
381} 373}
382 374
383static int indycam_legacy_probe(struct i2c_adapter *adapter)
384{
385 return adapter->id == I2C_HW_SGI_VINO;
386}
387
388static const struct i2c_device_id indycam_id[] = { 375static const struct i2c_device_id indycam_id[] = {
389 { "indycam", 0 }, 376 { "indycam", 0 },
390 { } 377 { }
@@ -393,10 +380,7 @@ MODULE_DEVICE_TABLE(i2c, indycam_id);
393 380
394static struct v4l2_i2c_driver_data v4l2_i2c_data = { 381static struct v4l2_i2c_driver_data v4l2_i2c_data = {
395 .name = "indycam", 382 .name = "indycam",
396 .driverid = I2C_DRIVERID_INDYCAM,
397 .command = indycam_command,
398 .probe = indycam_probe, 383 .probe = indycam_probe,
399 .remove = indycam_remove, 384 .remove = indycam_remove,
400 .legacy_probe = indycam_legacy_probe,
401 .id_table = indycam_id, 385 .id_table = indycam_id,
402}; 386};