mt2063.h 601 B

12345678910111213141516171819202122232425262728
  1. #ifndef __MT2063_H__
  2. #define __MT2063_H__
  3. #include "dvb_frontend.h"
  4. struct mt2063_config {
  5. u8 tuner_address;
  6. u32 refclock;
  7. };
  8. #if IS_REACHABLE(CONFIG_MEDIA_TUNER_MT2063)
  9. struct dvb_frontend *mt2063_attach(struct dvb_frontend *fe,
  10. struct mt2063_config *config,
  11. struct i2c_adapter *i2c);
  12. #else
  13. static inline struct dvb_frontend *mt2063_attach(struct dvb_frontend *fe,
  14. struct mt2063_config *config,
  15. struct i2c_adapter *i2c)
  16. {
  17. printk(KERN_WARNING "%s: Driver disabled by Kconfig\n", __func__);
  18. return NULL;
  19. }
  20. #endif /* CONFIG_DVB_MT2063 */
  21. #endif /* __MT2063_H__ */