drx39xxj.h 722 B

12345678910111213141516171819202122232425262728293031
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * Driver for Micronas DRX39xx family (drx3933j)
  4. *
  5. * Written by Devin Heitmueller <[email protected]>
  6. */
  7. #ifndef DRX39XXJ_H
  8. #define DRX39XXJ_H
  9. #include <linux/dvb/frontend.h>
  10. #include <media/dvb_frontend.h>
  11. #include "drx_driver.h"
  12. struct drx39xxj_state {
  13. struct i2c_adapter *i2c;
  14. struct drx_demod_instance *demod;
  15. struct dvb_frontend frontend;
  16. unsigned int i2c_gate_open:1;
  17. const struct firmware *fw;
  18. };
  19. #if IS_REACHABLE(CONFIG_DVB_DRX39XYJ)
  20. struct dvb_frontend *drx39xxj_attach(struct i2c_adapter *i2c);
  21. #else
  22. static inline struct dvb_frontend *drx39xxj_attach(struct i2c_adapter *i2c) {
  23. return NULL;
  24. };
  25. #endif
  26. #endif /* DVB_DUMMY_FE_H */