mt20xx.h 598 B

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