Commit c58b5ecd authored by Manu Abraham's avatar Manu Abraham Committed by Mauro Carvalho Chehab

V4L/DVB: [nGene] Trivial I2C related fixes/cleanups

Trivial I2C related fixes/cleanups
 - Remove Unused I2C ID
 - point the I2C device to the physical device
Signed-off-by: default avatarManu Abraham <manu@linuxtv.org>
Acked-by: default avatarOliver Endriss <o.endriss@gmx.de>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 9fdd7976
...@@ -828,9 +828,9 @@ static int ngene_i2c_init(struct ngene *dev, int dev_nr) ...@@ -828,9 +828,9 @@ static int ngene_i2c_init(struct ngene *dev, int dev_nr)
strcpy(adap->name, "nGene"); strcpy(adap->name, "nGene");
adap->id = I2C_HW_SAA7146;
adap->algo = &ngene_i2c_algo; adap->algo = &ngene_i2c_algo;
adap->algo_data = (void *)&(dev->channel[dev_nr]); adap->algo_data = (void *)&(dev->channel[dev_nr]);
adap->dev.parent = &dev->pci_dev->dev;
mutex_init(&adap->bus_lock); mutex_init(&adap->bus_lock);
return i2c_add_adapter(adap); return i2c_add_adapter(adap);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment