]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/media/video/cx88/cx88-vp3054-i2c.h
V4L/DVB (10201): Fixes cx88 compilation bug
[linux-2.6-omap-h63xx.git] / drivers / media / video / cx88 / cx88-vp3054-i2c.h
index b7a0a04d2423e4034d7c35a6de9f0712f13aca6d..be99c931dc3e24a2e686261a66a0e822677dbc5c 100644 (file)
 struct vp3054_i2c_state {
        struct i2c_adapter         adap;
        struct i2c_algo_bit_data   algo;
-       struct i2c_client          client;
        u32                        state;
 };
 
 /* ----------------------------------------------------------------------- */
+#if defined(CONFIG_VIDEO_CX88_VP3054) || (defined(CONFIG_VIDEO_CX88_VP3054_MODULE) && defined(MODULE))
 int  vp3054_i2c_probe(struct cx8802_dev *dev);
 void vp3054_i2c_remove(struct cx8802_dev *dev);
+#else
+static inline int  vp3054_i2c_probe(struct cx8802_dev *dev)
+{ return 0; }
+static inline void vp3054_i2c_remove(struct cx8802_dev *dev)
+{ }
+#endif