Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003  * cx88-vp3054-i2c.h  --  support for the secondary I2C bus of the
0004  *            DNTV Live! DVB-T Pro (VP-3054), wired as:
0005  *            GPIO[0] -> SCL, GPIO[1] -> SDA
0006  *
0007  * (c) 2005 Chris Pascoe <c.pascoe@itee.uq.edu.au>
0008  */
0009 
0010 /* ----------------------------------------------------------------------- */
0011 struct vp3054_i2c_state {
0012     struct i2c_adapter         adap;
0013     struct i2c_algo_bit_data   algo;
0014     u32                        state;
0015 };
0016 
0017 /* ----------------------------------------------------------------------- */
0018 #if IS_ENABLED(CONFIG_VIDEO_CX88_VP3054)
0019 int  vp3054_i2c_probe(struct cx8802_dev *dev);
0020 void vp3054_i2c_remove(struct cx8802_dev *dev);
0021 #else
0022 static inline int  vp3054_i2c_probe(struct cx8802_dev *dev)
0023 { return 0; }
0024 static inline void vp3054_i2c_remove(struct cx8802_dev *dev)
0025 { }
0026 #endif