stv0910.h 886 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Driver for the ST STV0910 DVB-S/S2 demodulator.
  4. *
  5. * Copyright (C) 2014-2015 Ralph Metzler <[email protected]>
  6. * Marcus Metzler <[email protected]>
  7. * developed for Digital Devices GmbH
  8. */
  9. #ifndef _STV0910_H_
  10. #define _STV0910_H_
  11. #include <linux/types.h>
  12. #include <linux/i2c.h>
  13. struct stv0910_cfg {
  14. u32 clk;
  15. u8 adr;
  16. u8 parallel;
  17. u8 rptlvl;
  18. u8 single;
  19. u8 tsspeed;
  20. };
  21. #if IS_REACHABLE(CONFIG_DVB_STV0910)
  22. struct dvb_frontend *stv0910_attach(struct i2c_adapter *i2c,
  23. struct stv0910_cfg *cfg, int nr);
  24. #else
  25. static inline struct dvb_frontend *stv0910_attach(struct i2c_adapter *i2c,
  26. struct stv0910_cfg *cfg,
  27. int nr)
  28. {
  29. pr_warn("%s: driver disabled by Kconfig\n", __func__);
  30. return NULL;
  31. }
  32. #endif /* CONFIG_DVB_STV0910 */
  33. #endif /* _STV0910_H_ */