stb6000.h 931 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. Driver for ST stb6000 DVBS Silicon tuner
  4. Copyright (C) 2008 Igor M. Liplianin (liplianin@me.by)
  5. */
  6. #ifndef __DVB_STB6000_H__
  7. #define __DVB_STB6000_H__
  8. #include <linux/i2c.h>
  9. #include <media/dvb_frontend.h>
  10. #if IS_REACHABLE(CONFIG_DVB_STB6000)
  11. /**
  12. * Attach a stb6000 tuner to the supplied frontend structure.
  13. *
  14. * @fe: Frontend to attach to.
  15. * @addr: i2c address of the tuner.
  16. * @i2c: i2c adapter to use.
  17. *
  18. * return: FE pointer on success, NULL on failure.
  19. */
  20. extern struct dvb_frontend *stb6000_attach(struct dvb_frontend *fe, int addr,
  21. struct i2c_adapter *i2c);
  22. #else
  23. static inline struct dvb_frontend *stb6000_attach(struct dvb_frontend *fe,
  24. int addr,
  25. struct i2c_adapter *i2c)
  26. {
  27. printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
  28. return NULL;
  29. }
  30. #endif /* CONFIG_DVB_STB6000 */
  31. #endif /* __DVB_STB6000_H__ */