zl10039.h 611 B

123456789101112131415161718192021222324252627
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. Driver for Zarlink ZL10039 DVB-S tuner
  4. Copyright (C) 2007 Jan D. Louw <jd.louw@mweb.co.za>
  5. */
  6. #ifndef ZL10039_H
  7. #define ZL10039_H
  8. #if IS_REACHABLE(CONFIG_DVB_ZL10039)
  9. struct dvb_frontend *zl10039_attach(struct dvb_frontend *fe,
  10. u8 i2c_addr,
  11. struct i2c_adapter *i2c);
  12. #else
  13. static inline struct dvb_frontend *zl10039_attach(struct dvb_frontend *fe,
  14. u8 i2c_addr,
  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_ZL10039 */
  21. #endif /* ZL10039_H */