27 lines · c
1/* SPDX-License-Identifier: GPL-2.0-or-later */2/*3 * cx88-vp3054-i2c.h -- support for the secondary I2C bus of the4 * DNTV Live! DVB-T Pro (VP-3054), wired as:5 * GPIO[0] -> SCL, GPIO[1] -> SDA6 *7 * (c) 2005 Chris Pascoe <c.pascoe@itee.uq.edu.au>8 */9 10/* ----------------------------------------------------------------------- */11struct 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)19int vp3054_i2c_probe(struct cx8802_dev *dev);20void vp3054_i2c_remove(struct cx8802_dev *dev);21#else22static inline int vp3054_i2c_probe(struct cx8802_dev *dev)23{ return 0; }24static inline void vp3054_i2c_remove(struct cx8802_dev *dev)25{ }26#endif27