cx22702.h 960 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. Conexant 22702 DVB OFDM demodulator driver
  4. based on:
  5. Alps TDMB7 DVB OFDM demodulator driver
  6. Copyright (C) 2001-2002 Convergence Integrated Media GmbH
  7. Holger Waechtler <holger@convergence.de>
  8. Copyright (C) 2004 Steven Toth <stoth@linuxtv.org>
  9. */
  10. #ifndef CX22702_H
  11. #define CX22702_H
  12. #include <linux/dvb/frontend.h>
  13. struct cx22702_config {
  14. /* the demodulator's i2c address */
  15. u8 demod_address;
  16. /* serial/parallel output */
  17. #define CX22702_PARALLEL_OUTPUT 0
  18. #define CX22702_SERIAL_OUTPUT 1
  19. u8 output_mode;
  20. };
  21. #if IS_REACHABLE(CONFIG_DVB_CX22702)
  22. extern struct dvb_frontend *cx22702_attach(
  23. const struct cx22702_config *config,
  24. struct i2c_adapter *i2c);
  25. #else
  26. static inline struct dvb_frontend *cx22702_attach(
  27. const struct cx22702_config *config,
  28. struct i2c_adapter *i2c)
  29. {
  30. printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
  31. return NULL;
  32. }
  33. #endif
  34. #endif