diff -Naurp bttv-0.9.4/bttv-if.c bttv-0.9.4-old/bttv-if.c --- bttv-0.9.4/bttv-if.c Wed Jan 8 11:39:49 2003 +++ bttv-0.9.4-old/bttv-if.c Sun Jan 19 11:47:29 2003 @@ -43,6 +43,7 @@ static struct i2c_client bttv_i2c_client EXPORT_SYMBOL(bttv_get_cardinfo); EXPORT_SYMBOL(bttv_get_pcidev); EXPORT_SYMBOL(bttv_get_id); +EXPORT_SYMBOL(bttv_get_i2c_adap); EXPORT_SYMBOL(bttv_gpio_enable); EXPORT_SYMBOL(bttv_read_gpio); EXPORT_SYMBOL(bttv_write_gpio); @@ -80,6 +82,14 @@ int bttv_get_id(unsigned int card) return bttvs[card].type; } +struct i2c_adapter *bttv_get_i2c_adap(unsigned int card) +{ + if (card >= bttv_num) { + return NULL; + } + return &bttvs[card].i2c_adap; +} + int bttv_gpio_enable(unsigned int card, unsigned long mask, unsigned long data) { struct bttv *btv; diff -Naurp bttv-0.9.4/bttv.h bttv-0.9.4-old/bttv.h --- bttv-0.9.4/bttv.h Wed Jan 8 11:39:49 2003 +++ bttv-0.9.4-old/bttv.h Sun Jan 19 11:46:59 2003 @@ -207,6 +208,8 @@ extern struct pci_dev* bttv_get_pcidev(u /* obsolete, use bttv_get_cardinfo instead */ extern int bttv_get_id(unsigned int card); +extern struct i2c_adapter *bttv_get_i2c_adap(unsigned int card); + /* sets GPOE register (BT848_GPIO_OUT_EN) to new value: data | (current_GPOE_value & ~mask) returns negative value if error occurred