cx24113.h 945 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * Driver for Conexant CX24113/CX24128 Tuner (Satellite)
  4. *
  5. * Copyright (C) 2007-8 Patrick Boettcher <[email protected]>
  6. */
  7. #ifndef CX24113_H
  8. #define CX24113_H
  9. struct dvb_frontend;
  10. struct cx24113_config {
  11. u8 i2c_addr; /* 0x14 or 0x54 */
  12. u32 xtal_khz;
  13. };
  14. #if IS_REACHABLE(CONFIG_DVB_TUNER_CX24113)
  15. extern struct dvb_frontend *cx24113_attach(struct dvb_frontend *,
  16. const struct cx24113_config *config, struct i2c_adapter *i2c);
  17. extern void cx24113_agc_callback(struct dvb_frontend *fe);
  18. #else
  19. static inline struct dvb_frontend *cx24113_attach(struct dvb_frontend *fe,
  20. const struct cx24113_config *config, struct i2c_adapter *i2c)
  21. {
  22. printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
  23. return NULL;
  24. }
  25. static inline void cx24113_agc_callback(struct dvb_frontend *fe)
  26. {
  27. printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
  28. }
  29. #endif
  30. #endif /* CX24113_H */