mt2131.h 874 B

1234567891011121314151617181920212223242526272829303132333435
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * Driver for Microtune MT2131 "QAM/8VSB single chip tuner"
  4. *
  5. * Copyright (c) 2006 Steven Toth <stoth@linuxtv.org>
  6. */
  7. #ifndef __MT2131_H__
  8. #define __MT2131_H__
  9. struct dvb_frontend;
  10. struct i2c_adapter;
  11. struct mt2131_config {
  12. u8 i2c_address;
  13. u8 clock_out; /* 0 = off, 1 = CLK/4, 2 = CLK/2, 3 = CLK/1 */
  14. };
  15. #if IS_REACHABLE(CONFIG_MEDIA_TUNER_MT2131)
  16. extern struct dvb_frontend* mt2131_attach(struct dvb_frontend *fe,
  17. struct i2c_adapter *i2c,
  18. struct mt2131_config *cfg,
  19. u16 if1);
  20. #else
  21. static inline struct dvb_frontend* mt2131_attach(struct dvb_frontend *fe,
  22. struct i2c_adapter *i2c,
  23. struct mt2131_config *cfg,
  24. u16 if1)
  25. {
  26. printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
  27. return NULL;
  28. }
  29. #endif /* CONFIG_MEDIA_TUNER_MT2131 */
  30. #endif /* __MT2131_H__ */