lgs8gl5.h 782 B

1234567891011121314151617181920212223242526272829303132
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. Legend Silicon LGS-8GL5 DMB-TH OFDM demodulator driver
  4. Copyright (C) 2008 Sirius International (Hong Kong) Limited
  5. Timothy Lee <timothy.lee@siriushk.com>
  6. */
  7. #ifndef LGS8GL5_H
  8. #define LGS8GL5_H
  9. #include <linux/dvb/frontend.h>
  10. struct lgs8gl5_config {
  11. /* the demodulator's i2c address */
  12. u8 demod_address;
  13. };
  14. #if IS_REACHABLE(CONFIG_DVB_LGS8GL5)
  15. extern struct dvb_frontend *lgs8gl5_attach(
  16. const struct lgs8gl5_config *config, struct i2c_adapter *i2c);
  17. #else
  18. static inline struct dvb_frontend *lgs8gl5_attach(
  19. const struct lgs8gl5_config *config, struct i2c_adapter *i2c) {
  20. printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
  21. return NULL;
  22. }
  23. #endif /* CONFIG_DVB_LGS8GL5 */
  24. #endif /* LGS8GL5_H */