tda826x.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. Driver for Philips tda8262/tda8263 DVBS Silicon tuners
  4. (c) 2006 Andrew de Quincey
  5. */
  6. #ifndef __DVB_TDA826X_H__
  7. #define __DVB_TDA826X_H__
  8. #include <linux/i2c.h>
  9. #include <media/dvb_frontend.h>
  10. /**
  11. * Attach a tda826x tuner to the supplied frontend structure.
  12. *
  13. * @fe: Frontend to attach to.
  14. * @addr: i2c address of the tuner.
  15. * @i2c: i2c adapter to use.
  16. * @has_loopthrough: Set to 1 if the card has a loopthrough RF connector.
  17. *
  18. * return: FE pointer on success, NULL on failure.
  19. */
  20. #if IS_REACHABLE(CONFIG_DVB_TDA826X)
  21. extern struct dvb_frontend* tda826x_attach(struct dvb_frontend *fe, int addr,
  22. struct i2c_adapter *i2c,
  23. int has_loopthrough);
  24. #else
  25. static inline struct dvb_frontend* tda826x_attach(struct dvb_frontend *fe,
  26. int addr,
  27. struct i2c_adapter *i2c,
  28. int has_loopthrough)
  29. {
  30. printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
  31. return NULL;
  32. }
  33. #endif // CONFIG_DVB_TDA826X
  34. #endif // __DVB_TDA826X_H__