fc0012.h 912 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * Fitipower FC0012 tuner driver - include
  4. *
  5. * Copyright (C) 2012 Hans-Frieder Vogt <hfvogt@gmx.net>
  6. */
  7. #ifndef _FC0012_H_
  8. #define _FC0012_H_
  9. #include <media/dvb_frontend.h>
  10. #include "fc001x-common.h"
  11. struct fc0012_config {
  12. /*
  13. * I2C address
  14. */
  15. u8 i2c_address;
  16. /*
  17. * clock
  18. */
  19. enum fc001x_xtal_freq xtal_freq;
  20. bool dual_master;
  21. /*
  22. * RF loop-through
  23. */
  24. bool loop_through;
  25. /*
  26. * clock output
  27. */
  28. bool clock_out;
  29. };
  30. #if IS_REACHABLE(CONFIG_MEDIA_TUNER_FC0012)
  31. extern struct dvb_frontend *fc0012_attach(struct dvb_frontend *fe,
  32. struct i2c_adapter *i2c,
  33. const struct fc0012_config *cfg);
  34. #else
  35. static inline struct dvb_frontend *fc0012_attach(struct dvb_frontend *fe,
  36. struct i2c_adapter *i2c,
  37. const struct fc0012_config *cfg)
  38. {
  39. pr_warn("%s: driver disabled by Kconfig\n", __func__);
  40. return NULL;
  41. }
  42. #endif
  43. #endif