vserver 1.9.3
[linux-2.6.git] / drivers / media / video / bttv-gpio.c
index 01ce7bc..585f67d 100644 (file)
@@ -106,6 +106,20 @@ void bttv_gpio_irq(struct bttv_core *core)
        }
 }
 
+void bttv_i2c_info(struct bttv_core *core, struct i2c_client *client, int attach)
+{
+       struct bttv_sub_driver *drv;
+       struct bttv_sub_device *dev;
+       struct list_head *item;
+
+       list_for_each(item,&core->subs) {
+               dev = list_entry(item,struct bttv_sub_device,list);
+               drv = to_bttv_sub_drv(dev->dev.driver);
+               if (drv && drv->i2c_info)
+                       drv->i2c_info(dev,client,attach);
+       }
+}
+
 /* ----------------------------------------------------------------------- */
 /* external: sub-driver register/unregister                                */