mc44s803.h 767 B

1234567891011121314151617181920212223242526272829303132
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * Driver for Freescale MC44S803 Low Power CMOS Broadband Tuner
  4. *
  5. * Copyright (c) 2009 Jochen Friedrich <jochen@scram.de>
  6. */
  7. #ifndef MC44S803_H
  8. #define MC44S803_H
  9. struct dvb_frontend;
  10. struct i2c_adapter;
  11. struct mc44s803_config {
  12. u8 i2c_address;
  13. u8 dig_out;
  14. };
  15. #if IS_REACHABLE(CONFIG_MEDIA_TUNER_MC44S803)
  16. extern struct dvb_frontend *mc44s803_attach(struct dvb_frontend *fe,
  17. struct i2c_adapter *i2c, struct mc44s803_config *cfg);
  18. #else
  19. static inline struct dvb_frontend *mc44s803_attach(struct dvb_frontend *fe,
  20. struct i2c_adapter *i2c, struct mc44s803_config *cfg)
  21. {
  22. printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
  23. return NULL;
  24. }
  25. #endif /* CONFIG_MEDIA_TUNER_MC44S803 */
  26. #endif