summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/usbvision/usbvision.h
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers/media/video/usbvision/usbvision.h')
-rw-r--r--linux/drivers/media/video/usbvision/usbvision.h27
1 files changed, 2 insertions, 25 deletions
diff --git a/linux/drivers/media/video/usbvision/usbvision.h b/linux/drivers/media/video/usbvision/usbvision.h
index 1d69d940b..c810a6bda 100644
--- a/linux/drivers/media/video/usbvision/usbvision.h
+++ b/linux/drivers/media/video/usbvision/usbvision.h
@@ -486,34 +486,11 @@ struct usb_usbvision {
/* i2c-algo-usb declaration */
/* --------------------------------------------------------------- */
-int usbvision_i2c_usb_del_bus(struct i2c_adapter *);
-
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0)
-static inline void *i2c_get_clientdata (struct i2c_client *dev)
-{
- return dev->data;
-}
-
-static inline void i2c_set_clientdata (struct i2c_client *dev, void *data)
-{
- dev->data = data;
-}
-
-static inline void *i2c_get_adapdata (struct i2c_adapter *dev)
-{
- return dev->data;
-}
-
-static inline void i2c_set_adapdata (struct i2c_adapter *dev, void *data)
-{
- dev->data = data;
-}
-#endif
-
/* ----------------------------------------------------------------------- */
/* usbvision specific I2C functions */
/* ----------------------------------------------------------------------- */
-int usbvision_init_i2c(struct usb_usbvision *usbvision);
+int usbvision_i2c_register(struct usb_usbvision *usbvision);
+int usbvision_i2c_unregister(struct usb_usbvision *usbvision);
void call_i2c_clients(struct usb_usbvision *usbvision, unsigned int cmd,void *arg);
/* defined in usbvision-core.c */