cx22700.h 778 B

1234567891011121314151617181920212223242526272829303132333435
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. Conexant CX22700 DVB OFDM demodulator driver
  4. Copyright (C) 2001-2002 Convergence Integrated Media GmbH
  5. Holger Waechtler <holger@convergence.de>
  6. */
  7. #ifndef CX22700_H
  8. #define CX22700_H
  9. #include <linux/dvb/frontend.h>
  10. struct cx22700_config
  11. {
  12. /* the demodulator's i2c address */
  13. u8 demod_address;
  14. };
  15. #if IS_REACHABLE(CONFIG_DVB_CX22700)
  16. extern struct dvb_frontend* cx22700_attach(const struct cx22700_config* config,
  17. struct i2c_adapter* i2c);
  18. #else
  19. static inline struct dvb_frontend* cx22700_attach(const struct cx22700_config* config,
  20. struct i2c_adapter* i2c)
  21. {
  22. printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
  23. return NULL;
  24. }
  25. #endif // CONFIG_DVB_CX22700
  26. #endif // CX22700_H