diff options
Diffstat (limited to 'linux/drivers/media/dvb/bt8xx/bt878.c')
-rw-r--r-- | linux/drivers/media/dvb/bt8xx/bt878.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/linux/drivers/media/dvb/bt8xx/bt878.c b/linux/drivers/media/dvb/bt8xx/bt878.c index 1974310f6..66ffd5379 100644 --- a/linux/drivers/media/dvb/bt8xx/bt878.c +++ b/linux/drivers/media/dvb/bt8xx/bt878.c @@ -339,10 +339,6 @@ static irqreturn_t bt878_irq(int irq, void *dev_id, struct pt_regs *regs) return IRQ_HANDLED; } -extern int bttv_gpio_enable(unsigned int card, unsigned long mask, unsigned long data); -extern int bttv_read_gpio(unsigned int card, unsigned long *data); -extern int bttv_write_gpio(unsigned int card, unsigned long mask, unsigned long data); - int bt878_device_control(struct bt878 *bt, unsigned int cmd, union dst_gpio_packet *mp) { @@ -386,20 +382,20 @@ bt878_device_control(struct bt878 *bt, unsigned int cmd, union dst_gpio_packet * EXPORT_SYMBOL(bt878_device_control); -struct bt878 *bt878_find_by_dvb_adap(struct dvb_adapter *adap) +struct bt878 *bt878_find_by_i2c_adap(struct i2c_adapter *adapter) { unsigned int card_nr; - printk("bt878 find by dvb adap: checking \"%s\"\n",adap->name); + printk("bt878 find by dvb adap: checking \"%s\"\n",adapter->name); for (card_nr = 0; card_nr < bt878_num; card_nr++) { - if (bt878[card_nr].adap_ptr == adap) + if (bt878[card_nr].adapter == adapter) return &bt878[card_nr]; } - printk("bt878 find by dvb adap: NOT found \"%s\"\n",adap->name); + printk("bt878 find by dvb adap: NOT found \"%s\"\n",adapter->name); return NULL; } -EXPORT_SYMBOL(bt878_find_by_dvb_adap); +EXPORT_SYMBOL(bt878_find_by_i2c_adap); /***********************/ /* PCI device handling */ |