tuner-simple.h 677 B

123456789101112131415161718192021222324252627
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. */
  4. #ifndef __TUNER_SIMPLE_H__
  5. #define __TUNER_SIMPLE_H__
  6. #include <linux/i2c.h>
  7. #include <media/dvb_frontend.h>
  8. #if IS_REACHABLE(CONFIG_MEDIA_TUNER_SIMPLE)
  9. extern struct dvb_frontend *simple_tuner_attach(struct dvb_frontend *fe,
  10. struct i2c_adapter *i2c_adap,
  11. u8 i2c_addr,
  12. unsigned int type);
  13. #else
  14. static inline struct dvb_frontend *simple_tuner_attach(struct dvb_frontend *fe,
  15. struct i2c_adapter *i2c_adap,
  16. u8 i2c_addr,
  17. unsigned int type)
  18. {
  19. printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
  20. return NULL;
  21. }
  22. #endif
  23. #endif /* __TUNER_SIMPLE_H__ */