• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3  * cx88-vp3054-i2c.h  --  support for the secondary I2C bus of the
4  *			  DNTV Live! DVB-T Pro (VP-3054), wired as:
5  *			  GPIO[0] -> SCL, GPIO[1] -> SDA
6  *
7  * (c) 2005 Chris Pascoe <c.pascoe@itee.uq.edu.au>
8  */
9 
10 /* ----------------------------------------------------------------------- */
11 struct vp3054_i2c_state {
12 	struct i2c_adapter         adap;
13 	struct i2c_algo_bit_data   algo;
14 	u32                        state;
15 };
16 
17 /* ----------------------------------------------------------------------- */
18 #if IS_ENABLED(CONFIG_VIDEO_CX88_VP3054)
19 int  vp3054_i2c_probe(struct cx8802_dev *dev);
20 void vp3054_i2c_remove(struct cx8802_dev *dev);
21 #else
vp3054_i2c_probe(struct cx8802_dev * dev)22 static inline int  vp3054_i2c_probe(struct cx8802_dev *dev)
23 { return 0; }
vp3054_i2c_remove(struct cx8802_dev * dev)24 static inline void vp3054_i2c_remove(struct cx8802_dev *dev)
25 { }
26 #endif
27