cxd2880.h 747 B

123456789101112131415161718192021222324252627282930
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * cxd2880.h
  4. * Sony CXD2880 DVB-T2/T tuner + demodulator driver public definitions
  5. *
  6. * Copyright (C) 2016, 2017, 2018 Sony Semiconductor Solutions Corporation
  7. */
  8. #ifndef CXD2880_H
  9. #define CXD2880_H
  10. struct cxd2880_config {
  11. struct spi_device *spi;
  12. struct mutex *spi_mutex; /* For SPI access exclusive control */
  13. };
  14. #if IS_REACHABLE(CONFIG_DVB_CXD2880)
  15. extern struct dvb_frontend *cxd2880_attach(struct dvb_frontend *fe,
  16. struct cxd2880_config *cfg);
  17. #else
  18. static inline struct dvb_frontend *cxd2880_attach(struct dvb_frontend *fe,
  19. struct cxd2880_config *cfg)
  20. {
  21. pr_warn("%s: driver disabled by Kconfig\n", __func__);
  22. return NULL;
  23. }
  24. #endif /* CONFIG_DVB_CXD2880 */
  25. #endif /* CXD2880_H */