V4L/DVB (12343): Stop defining I2C adapter IDs nobody uses
authorJean Delvare <khali@linux-fr.org>
Fri, 19 Jun 2009 19:56:56 +0000 (16:56 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 12 Sep 2009 15:18:13 +0000 (12:18 -0300)
There is no point in defining I2C adapter IDs when no code is using
them. As this field might go away in the future, stop using it when
we don't need to.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 files changed:
drivers/media/video/au0828/au0828-i2c.c
drivers/media/video/bt8xx/bttv-i2c.c
drivers/media/video/cafe_ccic.c
drivers/media/video/cx18/cx18-i2c.c
drivers/media/video/cx231xx/cx231xx-i2c.c
drivers/media/video/cx23885/cx23885-i2c.c
drivers/media/video/em28xx/em28xx-i2c.c
drivers/media/video/hdpvr/hdpvr-i2c.c
drivers/media/video/ivtv/ivtv-i2c.c
drivers/media/video/pvrusb2/pvrusb2-i2c-core.c
drivers/media/video/vino.c
drivers/media/video/w9968cf.c
drivers/media/video/zoran/zoran_card.c

index 13e494365e706d54a2bfc42dd64ac41140c75e4a..cbdb65c34f219081387fce62731b1f74e0b05f41 100644 (file)
@@ -320,7 +320,6 @@ static struct i2c_algorithm au0828_i2c_algo_template = {
 static struct i2c_adapter au0828_i2c_adap_template = {
        .name              = DRIVER_NAME,
        .owner             = THIS_MODULE,
-       .id                = I2C_HW_B_AU0828,
        .algo              = &au0828_i2c_algo_template,
 };
 
index ebd1ee9dc871d222f6f918b8670aa407037e9777..beda363418b0e6f28c5bc1ed1342ef16a9676817 100644 (file)
@@ -352,7 +352,6 @@ int __devinit init_bttv_i2c(struct bttv *btv)
                /* bt878 */
                strlcpy(btv->c.i2c_adap.name, "bt878",
                        sizeof(btv->c.i2c_adap.name));
-               btv->c.i2c_adap.id = I2C_HW_B_BT848;    /* FIXME */
                btv->c.i2c_adap.algo = &bttv_algo;
        } else {
                /* bt848 */
@@ -362,7 +361,6 @@ int __devinit init_bttv_i2c(struct bttv *btv)
 
                strlcpy(btv->c.i2c_adap.name, "bttv",
                        sizeof(btv->c.i2c_adap.name));
-               btv->c.i2c_adap.id = I2C_HW_B_BT848;
                memcpy(&btv->i2c_algo, &bttv_i2c_algo_bit_template,
                       sizeof(bttv_i2c_algo_bit_template));
                btv->i2c_algo.udelay = i2c_udelay;
index c4d181dde1cafb17ebf6ec80d2b20f9125b5cae9..9c149a78129444732f96a8b1c1117fb9812ea6ca 100644 (file)
@@ -490,7 +490,6 @@ static int cafe_smbus_setup(struct cafe_camera *cam)
        int ret;
 
        cafe_smbus_enable_irq(cam);
-       adap->id = I2C_HW_SMBUS_CAFE;
        adap->owner = THIS_MODULE;
        adap->algo = &cafe_smbus_algo;
        strcpy(adap->name, "cafe_ccic");
index 8591e4fc359f64081cfa7a3b60420cd39be728f3..237d84841b2658e413c0d9e41f7cb1c58b4a3d46 100644 (file)
@@ -190,7 +190,6 @@ static int cx18_getsda(void *data)
 /* template for i2c-bit-algo */
 static struct i2c_adapter cx18_i2c_adap_template = {
        .name = "cx18 i2c driver",
-       .id = I2C_HW_B_CX2341X,
        .algo = NULL,                   /* set by i2c-algo-bit */
        .algo_data = NULL,              /* filled from template */
        .owner = THIS_MODULE,
index 33219dc4d64987e640f109f853ec6a8b30159cc7..58d9cc0867b9a43bcc7240e8e578041cadbe87e0 100644 (file)
@@ -432,7 +432,6 @@ static struct i2c_algorithm cx231xx_algo = {
 static struct i2c_adapter cx231xx_adap_template = {
        .owner = THIS_MODULE,
        .name = "cx231xx",
-       .id = I2C_HW_B_CX231XX,
        .algo = &cx231xx_algo,
 };
 
index 384dec34134fe56ef6298909fa6a633a0c9bec4b..4172cb3874207428556d5d75e99d46e1d5f6a38f 100644 (file)
@@ -283,7 +283,6 @@ static struct i2c_algorithm cx23885_i2c_algo_template = {
 static struct i2c_adapter cx23885_i2c_adap_template = {
        .name              = "cx23885",
        .owner             = THIS_MODULE,
-       .id                = I2C_HW_B_CX23885,
        .algo              = &cx23885_i2c_algo_template,
 };
 
index 27e33a287dfc8a53da271359aef3c08ac5283517..71474d31e155a8ed311c187cc60ff9cd32a36f75 100644 (file)
@@ -459,7 +459,6 @@ static struct i2c_algorithm em28xx_algo = {
 static struct i2c_adapter em28xx_adap_template = {
        .owner = THIS_MODULE,
        .name = "em28xx",
-       .id = I2C_HW_B_EM28XX,
        .algo = &em28xx_algo,
 };
 
index c4b5d1515c10f54c1eaf942ae8e9f56f4a9d7094..296330a0e1e55cd0dc732680dfa3a79d2c52dcd5 100644 (file)
@@ -127,7 +127,6 @@ int hdpvr_register_i2c_adapter(struct hdpvr_device *dev)
                sizeof(i2c_adap->name));
        i2c_adap->algo  = &hdpvr_algo;
        i2c_adap->class = I2C_CLASS_TV_ANALOG;
-       i2c_adap->id    = I2C_HW_B_HDPVR;
        i2c_adap->owner = THIS_MODULE;
        i2c_adap->dev.parent = &dev->udev->dev;
 
index e52aa322b13426dc3139aff85f5af87927cd5f7d..8f15a31d3f662e95c7b36452b643039da6560040 100644 (file)
@@ -509,7 +509,6 @@ static struct i2c_algorithm ivtv_algo = {
 /* template for our-bit banger */
 static struct i2c_adapter ivtv_i2c_adap_hw_template = {
        .name = "ivtv i2c driver",
-       .id = I2C_HW_B_CX2341X,
        .algo = &ivtv_algo,
        .algo_data = NULL,                      /* filled from template */
        .owner = THIS_MODULE,
@@ -560,7 +559,6 @@ static int ivtv_getsda_old(void *data)
 /* template for i2c-bit-algo */
 static struct i2c_adapter ivtv_i2c_adap_template = {
        .name = "ivtv i2c driver",
-       .id = I2C_HW_B_CX2341X,
        .algo = NULL,                   /* set by i2c-algo-bit */
        .algo_data = NULL,              /* filled from template */
        .owner = THIS_MODULE,
index 610bd848df246537ddd3b65da677c0643a4d8037..a334b1a966a2a4b07f3dc44f2398a9a12c095550 100644 (file)
@@ -540,7 +540,6 @@ static struct i2c_algorithm pvr2_i2c_algo_template = {
 static struct i2c_adapter pvr2_i2c_adap_template = {
        .owner         = THIS_MODULE,
        .class         = 0,
-       .id            = I2C_HW_B_BT848,
 };
 
 
index 97b082fe44736423bf2a2240abc962cfdb90f999..f3b6e15d91f2b40df6e53a685c084a9807c0846b 100644 (file)
@@ -1776,7 +1776,6 @@ static struct i2c_algo_sgi_data i2c_sgi_vino_data = {
 
 static struct i2c_adapter vino_i2c_adapter = {
        .name                   = "VINO I2C bus",
-       .id                     = I2C_HW_SGI_VINO,
        .algo                   = &sgi_algo,
        .algo_data              = &i2c_sgi_vino_data,
        .owner                  = THIS_MODULE,
index 6c3f23e31b5cd19ab2a6bf73726d045bea199753..602484dd3da9385470abcfbbc7b03c569faa38b7 100644 (file)
@@ -1497,7 +1497,6 @@ static int w9968cf_i2c_init(struct w9968cf_device* cam)
        };
 
        static struct i2c_adapter adap = {
-               .id =                I2C_HW_SMBUS_W9968CF,
                .owner =             THIS_MODULE,
                .algo =              &algo,
        };
index 03dc2f3cf84af17d33530a3a6b6cc941764dbdd2..40d07faa4a2427c82ee2784fe5fb1e83b51d20ba 100644 (file)
@@ -732,7 +732,6 @@ zoran_register_i2c (struct zoran *zr)
        memcpy(&zr->i2c_algo, &zoran_i2c_bit_data_template,
               sizeof(struct i2c_algo_bit_data));
        zr->i2c_algo.data = zr;
-       zr->i2c_adapter.id = I2C_HW_B_ZR36067;
        strlcpy(zr->i2c_adapter.name, ZR_DEVNAME(zr),
                sizeof(zr->i2c_adapter.name));
        i2c_set_adapdata(&zr->i2c_adapter, &zr->v4l2_dev);