fc0011.h 928 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #ifndef LINUX_FC0011_H_
  2. #define LINUX_FC0011_H_
  3. #include "dvb_frontend.h"
  4. /** struct fc0011_config - fc0011 hardware config
  5. *
  6. * @i2c_address: I2C bus address.
  7. */
  8. struct fc0011_config {
  9. u8 i2c_address;
  10. };
  11. /** enum fc0011_fe_callback_commands - Frontend callbacks
  12. *
  13. * @FC0011_FE_CALLBACK_POWER: Power on tuner hardware.
  14. * @FC0011_FE_CALLBACK_RESET: Request a tuner reset.
  15. */
  16. enum fc0011_fe_callback_commands {
  17. FC0011_FE_CALLBACK_POWER,
  18. FC0011_FE_CALLBACK_RESET,
  19. };
  20. #if IS_REACHABLE(CONFIG_MEDIA_TUNER_FC0011)
  21. struct dvb_frontend *fc0011_attach(struct dvb_frontend *fe,
  22. struct i2c_adapter *i2c,
  23. const struct fc0011_config *config);
  24. #else
  25. static inline
  26. struct dvb_frontend *fc0011_attach(struct dvb_frontend *fe,
  27. struct i2c_adapter *i2c,
  28. const struct fc0011_config *config)
  29. {
  30. dev_err(&i2c->dev, "fc0011 driver disabled in Kconfig\n");
  31. return NULL;
  32. }
  33. #endif
  34. #endif /* LINUX_FC0011_H_ */