tda665x.h 820 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. TDA665x tuner driver
  4. Copyright (C) Manu Abraham (abraham.manu@gmail.com)
  5. */
  6. #ifndef __TDA665x_H
  7. #define __TDA665x_H
  8. struct tda665x_config {
  9. char name[128];
  10. u8 addr;
  11. u32 frequency_min;
  12. u32 frequency_max;
  13. u32 frequency_offst;
  14. u32 ref_multiplier;
  15. u32 ref_divider;
  16. };
  17. #if IS_REACHABLE(CONFIG_DVB_TDA665x)
  18. extern struct dvb_frontend *tda665x_attach(struct dvb_frontend *fe,
  19. const struct tda665x_config *config,
  20. struct i2c_adapter *i2c);
  21. #else
  22. static inline struct dvb_frontend *tda665x_attach(struct dvb_frontend *fe,
  23. const struct tda665x_config *config,
  24. struct i2c_adapter *i2c)
  25. {
  26. printk(KERN_WARNING "%s: Driver disabled by Kconfig\n", __func__);
  27. return NULL;
  28. }
  29. #endif /* CONFIG_DVB_TDA665x */
  30. #endif /* __TDA665x_H */