mb86a16.h 829 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. Fujitsu MB86A16 DVB-S/DSS DC Receiver driver
  4. Copyright (C) Manu Abraham (abraham.manu@gmail.com)
  5. */
  6. #ifndef __MB86A16_H
  7. #define __MB86A16_H
  8. #include <linux/dvb/frontend.h>
  9. #include <media/dvb_frontend.h>
  10. struct mb86a16_config {
  11. u8 demod_address;
  12. int (*set_voltage)(struct dvb_frontend *fe,
  13. enum fe_sec_voltage voltage);
  14. };
  15. #if IS_REACHABLE(CONFIG_DVB_MB86A16)
  16. extern struct dvb_frontend *mb86a16_attach(const struct mb86a16_config *config,
  17. struct i2c_adapter *i2c_adap);
  18. #else
  19. static inline struct dvb_frontend *mb86a16_attach(const struct mb86a16_config *config,
  20. struct i2c_adapter *i2c_adap)
  21. {
  22. printk(KERN_WARNING "%s: Driver disabled by Kconfig\n", __func__);
  23. return NULL;
  24. }
  25. #endif /* CONFIG_DVB_MB86A16 */
  26. #endif /* __MB86A16_H */