V4L/DVB (5618): Cx88: Drop the generic i2c client from cx88-vp3054-i2c
Drop the generic client declared in cx88-vp3054-i2c: it's not used anywhere. This shrinks cx88-vp3054-i2c.o by 29% on x86_64. Unless it was there for later use? Signed-off-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
This commit is contained in:
parent
57e45b31c1
commit
ed69686a16
2 changed files with 0 additions and 8 deletions
|
@ -111,10 +111,6 @@ static struct i2c_adapter vp3054_i2c_adap_template = {
|
||||||
.id = I2C_HW_B_CX2388x,
|
.id = I2C_HW_B_CX2388x,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct i2c_client vp3054_i2c_client_template = {
|
|
||||||
.name = "VP-3054",
|
|
||||||
};
|
|
||||||
|
|
||||||
int vp3054_i2c_probe(struct cx8802_dev *dev)
|
int vp3054_i2c_probe(struct cx8802_dev *dev)
|
||||||
{
|
{
|
||||||
struct cx88_core *core = dev->core;
|
struct cx88_core *core = dev->core;
|
||||||
|
@ -133,8 +129,6 @@ int vp3054_i2c_probe(struct cx8802_dev *dev)
|
||||||
sizeof(vp3054_i2c->adap));
|
sizeof(vp3054_i2c->adap));
|
||||||
memcpy(&vp3054_i2c->algo, &vp3054_i2c_algo_template,
|
memcpy(&vp3054_i2c->algo, &vp3054_i2c_algo_template,
|
||||||
sizeof(vp3054_i2c->algo));
|
sizeof(vp3054_i2c->algo));
|
||||||
memcpy(&vp3054_i2c->client, &vp3054_i2c_client_template,
|
|
||||||
sizeof(vp3054_i2c->client));
|
|
||||||
|
|
||||||
vp3054_i2c->adap.class |= I2C_CLASS_TV_DIGITAL;
|
vp3054_i2c->adap.class |= I2C_CLASS_TV_DIGITAL;
|
||||||
|
|
||||||
|
@ -144,7 +138,6 @@ int vp3054_i2c_probe(struct cx8802_dev *dev)
|
||||||
vp3054_i2c->algo.data = dev;
|
vp3054_i2c->algo.data = dev;
|
||||||
i2c_set_adapdata(&vp3054_i2c->adap, dev);
|
i2c_set_adapdata(&vp3054_i2c->adap, dev);
|
||||||
vp3054_i2c->adap.algo_data = &vp3054_i2c->algo;
|
vp3054_i2c->adap.algo_data = &vp3054_i2c->algo;
|
||||||
vp3054_i2c->client.adapter = &vp3054_i2c->adap;
|
|
||||||
|
|
||||||
vp3054_bit_setscl(dev,1);
|
vp3054_bit_setscl(dev,1);
|
||||||
vp3054_bit_setsda(dev,1);
|
vp3054_bit_setsda(dev,1);
|
||||||
|
|
|
@ -26,7 +26,6 @@
|
||||||
struct vp3054_i2c_state {
|
struct vp3054_i2c_state {
|
||||||
struct i2c_adapter adap;
|
struct i2c_adapter adap;
|
||||||
struct i2c_algo_bit_data algo;
|
struct i2c_algo_bit_data algo;
|
||||||
struct i2c_client client;
|
|
||||||
u32 state;
|
u32 state;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue