cx88-vp3054-i2c.h 841 B

1234567891011121314151617181920212223242526
  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 <[email protected]>
  8. */
  9. /* ----------------------------------------------------------------------- */
  10. struct vp3054_i2c_state {
  11. struct i2c_adapter adap;
  12. struct i2c_algo_bit_data algo;
  13. u32 state;
  14. };
  15. /* ----------------------------------------------------------------------- */
  16. #if IS_ENABLED(CONFIG_VIDEO_CX88_VP3054)
  17. int vp3054_i2c_probe(struct cx8802_dev *dev);
  18. void vp3054_i2c_remove(struct cx8802_dev *dev);
  19. #else
  20. static inline int vp3054_i2c_probe(struct cx8802_dev *dev)
  21. { return 0; }
  22. static inline void vp3054_i2c_remove(struct cx8802_dev *dev)
  23. { }
  24. #endif