V4L/DVB (12343): Stop defining I2C adapter IDs nobody uses

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>
This commit is contained in:
Jean Delvare 2009-06-19 16:56:56 -03:00 коммит произвёл Mauro Carvalho Chehab
Родитель 43f8de7ac6
Коммит e81516c58e
13 изменённых файлов: 0 добавлений и 15 удалений

Просмотреть файл

@ -320,7 +320,6 @@ static struct i2c_algorithm au0828_i2c_algo_template = {
static struct i2c_adapter au0828_i2c_adap_template = { static struct i2c_adapter au0828_i2c_adap_template = {
.name = DRIVER_NAME, .name = DRIVER_NAME,
.owner = THIS_MODULE, .owner = THIS_MODULE,
.id = I2C_HW_B_AU0828,
.algo = &au0828_i2c_algo_template, .algo = &au0828_i2c_algo_template,
}; };

Просмотреть файл

@ -352,7 +352,6 @@ int __devinit init_bttv_i2c(struct bttv *btv)
/* bt878 */ /* bt878 */
strlcpy(btv->c.i2c_adap.name, "bt878", strlcpy(btv->c.i2c_adap.name, "bt878",
sizeof(btv->c.i2c_adap.name)); sizeof(btv->c.i2c_adap.name));
btv->c.i2c_adap.id = I2C_HW_B_BT848; /* FIXME */
btv->c.i2c_adap.algo = &bttv_algo; btv->c.i2c_adap.algo = &bttv_algo;
} else { } else {
/* bt848 */ /* bt848 */
@ -362,7 +361,6 @@ int __devinit init_bttv_i2c(struct bttv *btv)
strlcpy(btv->c.i2c_adap.name, "bttv", strlcpy(btv->c.i2c_adap.name, "bttv",
sizeof(btv->c.i2c_adap.name)); sizeof(btv->c.i2c_adap.name));
btv->c.i2c_adap.id = I2C_HW_B_BT848;
memcpy(&btv->i2c_algo, &bttv_i2c_algo_bit_template, memcpy(&btv->i2c_algo, &bttv_i2c_algo_bit_template,
sizeof(bttv_i2c_algo_bit_template)); sizeof(bttv_i2c_algo_bit_template));
btv->i2c_algo.udelay = i2c_udelay; btv->i2c_algo.udelay = i2c_udelay;

Просмотреть файл

@ -490,7 +490,6 @@ static int cafe_smbus_setup(struct cafe_camera *cam)
int ret; int ret;
cafe_smbus_enable_irq(cam); cafe_smbus_enable_irq(cam);
adap->id = I2C_HW_SMBUS_CAFE;
adap->owner = THIS_MODULE; adap->owner = THIS_MODULE;
adap->algo = &cafe_smbus_algo; adap->algo = &cafe_smbus_algo;
strcpy(adap->name, "cafe_ccic"); strcpy(adap->name, "cafe_ccic");

Просмотреть файл

@ -190,7 +190,6 @@ static int cx18_getsda(void *data)
/* template for i2c-bit-algo */ /* template for i2c-bit-algo */
static struct i2c_adapter cx18_i2c_adap_template = { static struct i2c_adapter cx18_i2c_adap_template = {
.name = "cx18 i2c driver", .name = "cx18 i2c driver",
.id = I2C_HW_B_CX2341X,
.algo = NULL, /* set by i2c-algo-bit */ .algo = NULL, /* set by i2c-algo-bit */
.algo_data = NULL, /* filled from template */ .algo_data = NULL, /* filled from template */
.owner = THIS_MODULE, .owner = THIS_MODULE,

Просмотреть файл

@ -432,7 +432,6 @@ static struct i2c_algorithm cx231xx_algo = {
static struct i2c_adapter cx231xx_adap_template = { static struct i2c_adapter cx231xx_adap_template = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.name = "cx231xx", .name = "cx231xx",
.id = I2C_HW_B_CX231XX,
.algo = &cx231xx_algo, .algo = &cx231xx_algo,
}; };

Просмотреть файл

@ -283,7 +283,6 @@ static struct i2c_algorithm cx23885_i2c_algo_template = {
static struct i2c_adapter cx23885_i2c_adap_template = { static struct i2c_adapter cx23885_i2c_adap_template = {
.name = "cx23885", .name = "cx23885",
.owner = THIS_MODULE, .owner = THIS_MODULE,
.id = I2C_HW_B_CX23885,
.algo = &cx23885_i2c_algo_template, .algo = &cx23885_i2c_algo_template,
}; };

Просмотреть файл

@ -459,7 +459,6 @@ static struct i2c_algorithm em28xx_algo = {
static struct i2c_adapter em28xx_adap_template = { static struct i2c_adapter em28xx_adap_template = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.name = "em28xx", .name = "em28xx",
.id = I2C_HW_B_EM28XX,
.algo = &em28xx_algo, .algo = &em28xx_algo,
}; };

Просмотреть файл

@ -127,7 +127,6 @@ int hdpvr_register_i2c_adapter(struct hdpvr_device *dev)
sizeof(i2c_adap->name)); sizeof(i2c_adap->name));
i2c_adap->algo = &hdpvr_algo; i2c_adap->algo = &hdpvr_algo;
i2c_adap->class = I2C_CLASS_TV_ANALOG; i2c_adap->class = I2C_CLASS_TV_ANALOG;
i2c_adap->id = I2C_HW_B_HDPVR;
i2c_adap->owner = THIS_MODULE; i2c_adap->owner = THIS_MODULE;
i2c_adap->dev.parent = &dev->udev->dev; i2c_adap->dev.parent = &dev->udev->dev;

Просмотреть файл

@ -509,7 +509,6 @@ static struct i2c_algorithm ivtv_algo = {
/* template for our-bit banger */ /* template for our-bit banger */
static struct i2c_adapter ivtv_i2c_adap_hw_template = { static struct i2c_adapter ivtv_i2c_adap_hw_template = {
.name = "ivtv i2c driver", .name = "ivtv i2c driver",
.id = I2C_HW_B_CX2341X,
.algo = &ivtv_algo, .algo = &ivtv_algo,
.algo_data = NULL, /* filled from template */ .algo_data = NULL, /* filled from template */
.owner = THIS_MODULE, .owner = THIS_MODULE,
@ -560,7 +559,6 @@ static int ivtv_getsda_old(void *data)
/* template for i2c-bit-algo */ /* template for i2c-bit-algo */
static struct i2c_adapter ivtv_i2c_adap_template = { static struct i2c_adapter ivtv_i2c_adap_template = {
.name = "ivtv i2c driver", .name = "ivtv i2c driver",
.id = I2C_HW_B_CX2341X,
.algo = NULL, /* set by i2c-algo-bit */ .algo = NULL, /* set by i2c-algo-bit */
.algo_data = NULL, /* filled from template */ .algo_data = NULL, /* filled from template */
.owner = THIS_MODULE, .owner = THIS_MODULE,

Просмотреть файл

@ -540,7 +540,6 @@ static struct i2c_algorithm pvr2_i2c_algo_template = {
static struct i2c_adapter pvr2_i2c_adap_template = { static struct i2c_adapter pvr2_i2c_adap_template = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.class = 0, .class = 0,
.id = I2C_HW_B_BT848,
}; };

Просмотреть файл

@ -1776,7 +1776,6 @@ static struct i2c_algo_sgi_data i2c_sgi_vino_data = {
static struct i2c_adapter vino_i2c_adapter = { static struct i2c_adapter vino_i2c_adapter = {
.name = "VINO I2C bus", .name = "VINO I2C bus",
.id = I2C_HW_SGI_VINO,
.algo = &sgi_algo, .algo = &sgi_algo,
.algo_data = &i2c_sgi_vino_data, .algo_data = &i2c_sgi_vino_data,
.owner = THIS_MODULE, .owner = THIS_MODULE,

Просмотреть файл

@ -1497,7 +1497,6 @@ static int w9968cf_i2c_init(struct w9968cf_device* cam)
}; };
static struct i2c_adapter adap = { static struct i2c_adapter adap = {
.id = I2C_HW_SMBUS_W9968CF,
.owner = THIS_MODULE, .owner = THIS_MODULE,
.algo = &algo, .algo = &algo,
}; };

Просмотреть файл

@ -732,7 +732,6 @@ zoran_register_i2c (struct zoran *zr)
memcpy(&zr->i2c_algo, &zoran_i2c_bit_data_template, memcpy(&zr->i2c_algo, &zoran_i2c_bit_data_template,
sizeof(struct i2c_algo_bit_data)); sizeof(struct i2c_algo_bit_data));
zr->i2c_algo.data = zr; zr->i2c_algo.data = zr;
zr->i2c_adapter.id = I2C_HW_B_ZR36067;
strlcpy(zr->i2c_adapter.name, ZR_DEVNAME(zr), strlcpy(zr->i2c_adapter.name, ZR_DEVNAME(zr),
sizeof(zr->i2c_adapter.name)); sizeof(zr->i2c_adapter.name));
i2c_set_adapdata(&zr->i2c_adapter, &zr->v4l2_dev); i2c_set_adapdata(&zr->i2c_adapter, &zr->v4l2_dev);