linux/drivers/media/pci/cx88/cx88-vp3054-i2c.h
<<
>>
Prefs
   1/*
   2 * cx88-vp3054-i2c.h  --  support for the secondary I2C bus of the
   3 *                        DNTV Live! DVB-T Pro (VP-3054), wired as:
   4 *                        GPIO[0] -> SCL, GPIO[1] -> SDA
   5 *
   6 * (c) 2005 Chris Pascoe <c.pascoe@itee.uq.edu.au>
   7 *
   8 * This program is free software; you can redistribute it and/or modify
   9 * it under the terms of the GNU General Public License as published by
  10 * the Free Software Foundation; either version 2 of the License, or
  11 * (at your option) any later version.
  12 *
  13 * This program is distributed in the hope that it will be useful,
  14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16 * GNU General Public License for more details.
  17 */
  18
  19/* ----------------------------------------------------------------------- */
  20struct vp3054_i2c_state {
  21        struct i2c_adapter         adap;
  22        struct i2c_algo_bit_data   algo;
  23        u32                        state;
  24};
  25
  26/* ----------------------------------------------------------------------- */
  27#if IS_ENABLED(CONFIG_VIDEO_CX88_VP3054)
  28int  vp3054_i2c_probe(struct cx8802_dev *dev);
  29void vp3054_i2c_remove(struct cx8802_dev *dev);
  30#else
  31static inline int  vp3054_i2c_probe(struct cx8802_dev *dev)
  32{ return 0; }
  33static inline void vp3054_i2c_remove(struct cx8802_dev *dev)
  34{ }
  35#endif
  36