mt312.h 912 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. Driver for Zarlink MT312 Satellite Channel Decoder
  4. Copyright (C) 2003 Andreas Oberritter <obi@linuxtv.org>
  5. References:
  6. http://products.zarlink.com/product_profiles/MT312.htm
  7. http://products.zarlink.com/product_profiles/SL1935.htm
  8. */
  9. #ifndef MT312_H
  10. #define MT312_H
  11. #include <linux/dvb/frontend.h>
  12. struct mt312_config {
  13. /* the demodulator's i2c address */
  14. u8 demod_address;
  15. /* inverted voltage setting */
  16. unsigned int voltage_inverted:1;
  17. };
  18. #if IS_REACHABLE(CONFIG_DVB_MT312)
  19. struct dvb_frontend *mt312_attach(const struct mt312_config *config,
  20. struct i2c_adapter *i2c);
  21. #else
  22. static inline struct dvb_frontend *mt312_attach(
  23. const struct mt312_config *config, struct i2c_adapter *i2c)
  24. {
  25. printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
  26. return NULL;
  27. }
  28. #endif /* CONFIG_DVB_MT312 */
  29. #endif /* MT312_H */