tda18218.h 714 B

12345678910111213141516171819202122232425262728293031
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * NXP TDA18218HN silicon tuner driver
  4. *
  5. * Copyright (C) 2010 Antti Palosaari <crope@iki.fi>
  6. */
  7. #ifndef TDA18218_H
  8. #define TDA18218_H
  9. #include <media/dvb_frontend.h>
  10. struct tda18218_config {
  11. u8 i2c_address;
  12. u8 i2c_wr_max;
  13. u8 loop_through:1;
  14. };
  15. #if IS_REACHABLE(CONFIG_MEDIA_TUNER_TDA18218)
  16. extern struct dvb_frontend *tda18218_attach(struct dvb_frontend *fe,
  17. struct i2c_adapter *i2c, struct tda18218_config *cfg);
  18. #else
  19. static inline struct dvb_frontend *tda18218_attach(struct dvb_frontend *fe,
  20. struct i2c_adapter *i2c, struct tda18218_config *cfg)
  21. {
  22. printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
  23. return NULL;
  24. }
  25. #endif
  26. #endif