tua6100.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * Driver for Infineon tua6100 PLL.
  4. *
  5. * (c) 2006 Andrew de Quincey
  6. *
  7. * Based on code found in budget-av.c, which has the following:
  8. * Compiled from various sources by Michael Hunold <michael@mihu.de>
  9. *
  10. * CI interface support (c) 2004 Olivier Gournet <ogournet@anevia.com> &
  11. * Andrew de Quincey <adq_dvb@lidskialf.net>
  12. *
  13. * Copyright (C) 2002 Ralph Metzler <rjkm@metzlerbros.de>
  14. *
  15. * Copyright (C) 1999-2002 Ralph Metzler
  16. * & Marcus Metzler for convergence integrated media GmbH
  17. */
  18. #ifndef __DVB_TUA6100_H__
  19. #define __DVB_TUA6100_H__
  20. #include <linux/i2c.h>
  21. #include <media/dvb_frontend.h>
  22. #if IS_REACHABLE(CONFIG_DVB_TUA6100)
  23. extern struct dvb_frontend *tua6100_attach(struct dvb_frontend *fe, int addr, struct i2c_adapter *i2c);
  24. #else
  25. static inline struct dvb_frontend* tua6100_attach(struct dvb_frontend *fe, int addr, struct i2c_adapter *i2c)
  26. {
  27. printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
  28. return NULL;
  29. }
  30. #endif // CONFIG_DVB_TUA6100
  31. #endif