l64781.h 785 B

1234567891011121314151617181920212223242526272829303132333435
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. driver for LSI L64781 COFDM demodulator
  4. Copyright (C) 2001 Holger Waechtler for Convergence Integrated Media GmbH
  5. Marko Kohtala <marko.kohtala@luukku.com>
  6. */
  7. #ifndef L64781_H
  8. #define L64781_H
  9. #include <linux/dvb/frontend.h>
  10. struct l64781_config
  11. {
  12. /* the demodulator's i2c address */
  13. u8 demod_address;
  14. };
  15. #if IS_REACHABLE(CONFIG_DVB_L64781)
  16. extern struct dvb_frontend* l64781_attach(const struct l64781_config* config,
  17. struct i2c_adapter* i2c);
  18. #else
  19. static inline struct dvb_frontend* l64781_attach(const struct l64781_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_L64781
  26. #endif // L64781_H