mt2063.h 646 B

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