cx24117.h 758 B

12345678910111213141516171819202122232425262728293031323334
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. Conexant cx24117/cx24132 - Dual DVBS/S2 Satellite demod/tuner driver
  4. Copyright (C) 2013 Luis Alves <[email protected]>
  5. (based on cx24116.h by Steven Toth)
  6. */
  7. #ifndef CX24117_H
  8. #define CX24117_H
  9. #include <linux/dvb/frontend.h>
  10. struct cx24117_config {
  11. /* the demodulator's i2c address */
  12. u8 demod_address;
  13. };
  14. #if IS_REACHABLE(CONFIG_DVB_CX24117)
  15. extern struct dvb_frontend *cx24117_attach(
  16. const struct cx24117_config *config,
  17. struct i2c_adapter *i2c);
  18. #else
  19. static inline struct dvb_frontend *cx24117_attach(
  20. const struct cx24117_config *config,
  21. struct i2c_adapter *i2c)
  22. {
  23. dev_warn(&i2c->dev, "%s: driver disabled by Kconfig\n", __func__);
  24. return NULL;
  25. }
  26. #endif
  27. #endif /* CX24117_H */