]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
V4L/DVB (11371): v4l2: remove legacy fields in v4l2-i2c-drv.h.
authorHans Verkuil <hverkuil@xs4all.nl>
Sun, 29 Mar 2009 22:40:01 +0000 (19:40 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 7 Apr 2009 00:44:22 +0000 (21:44 -0300)
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/saa7115.c
drivers/media/video/tuner-core.c
include/media/v4l2-i2c-drv.h

index e6538eb3aa1707dffcd5f97772b89227e837022a..e8488430cdbd3ad3c7d07542415741638be77020 100644 (file)
@@ -1667,6 +1667,5 @@ static struct v4l2_i2c_driver_data v4l2_i2c_data = {
        .name = "saa7115",
        .probe = saa711x_probe,
        .remove = saa711x_remove,
-       .legacy_class = I2C_CLASS_TV_ANALOG | I2C_CLASS_TV_DIGITAL,
        .id_table = saa7115_id,
 };
index 28af7b7e9512d1e9aad8c1a01fd9bf6dfaa9a963..cc5f018b8eb4adcf4577eb97f9f165359d22a0e9 100644 (file)
@@ -1020,7 +1020,7 @@ static void tuner_lookup(struct i2c_adapter *adap,
                int mode_mask;
 
                if (pos->i2c->adapter != adap ||
-                   pos->i2c->driver->id != I2C_DRIVERID_TUNER)
+                   strcmp(pos->i2c->driver->driver.name, "tuner"))
                        continue;
 
                mode_mask = pos->mode_mask & ~T_STANDBY;
index efdc8bf27f87cc3aa09ca51e1e41459d1434d485..1ceeb9cfc8a8a35575574470db7889473a3f39fc 100644 (file)
 
 struct v4l2_i2c_driver_data {
        const char * const name;
-       int driverid;
        int (*command)(struct i2c_client *client, unsigned int cmd, void *arg);
        int (*probe)(struct i2c_client *client, const struct i2c_device_id *id);
        int (*remove)(struct i2c_client *client);
        int (*suspend)(struct i2c_client *client, pm_message_t state);
        int (*resume)(struct i2c_client *client);
-       int (*legacy_probe)(struct i2c_adapter *adapter);
-       int legacy_class;
        const struct i2c_device_id *id_table;
 };
 
@@ -59,7 +56,6 @@ static struct i2c_driver v4l2_i2c_driver;
 static int __init v4l2_i2c_drv_init(void)
 {
        v4l2_i2c_driver.driver.name = v4l2_i2c_data.name;
-       v4l2_i2c_driver.id = v4l2_i2c_data.driverid;
        v4l2_i2c_driver.command = v4l2_i2c_data.command;
        v4l2_i2c_driver.probe = v4l2_i2c_data.probe;
        v4l2_i2c_driver.remove = v4l2_i2c_data.remove;