tda9887.h 669 B

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