tda8083.h 920 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. Driver for Grundig 29504-491, a Philips TDA8083 based QPSK Frontend
  4. Copyright (C) 2001 Convergence Integrated Media GmbH
  5. written by Ralph Metzler <[email protected]>
  6. adoption to the new DVB frontend API and diagnostic ioctl's
  7. by Holger Waechtler <[email protected]>
  8. */
  9. #ifndef TDA8083_H
  10. #define TDA8083_H
  11. #include <linux/dvb/frontend.h>
  12. struct tda8083_config
  13. {
  14. /* the demodulator's i2c address */
  15. u8 demod_address;
  16. };
  17. #if IS_REACHABLE(CONFIG_DVB_TDA8083)
  18. extern struct dvb_frontend* tda8083_attach(const struct tda8083_config* config,
  19. struct i2c_adapter* i2c);
  20. #else
  21. static inline struct dvb_frontend* tda8083_attach(const struct tda8083_config* config,
  22. struct i2c_adapter* i2c)
  23. {
  24. printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
  25. return NULL;
  26. }
  27. #endif // CONFIG_DVB_TDA8083
  28. #endif // TDA8083_H