sdca_hid.h 788 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */
  2. /*
  3. * The MIPI SDCA specification is available for public downloads at
  4. * https://www.mipi.org/mipi-sdca-v1-0-download
  5. *
  6. */
  7. #ifndef __SDCA_HID_H__
  8. #define __SDCA_HID_H__
  9. struct device;
  10. struct sdw_slave;
  11. struct sdca_entity;
  12. struct sdca_interrupt;
  13. #if IS_ENABLED(CONFIG_SND_SOC_SDCA_HID)
  14. int sdca_add_hid_device(struct device *dev, struct sdw_slave *sdw,
  15. struct sdca_entity *entity);
  16. int sdca_hid_process_report(struct sdca_interrupt *interrupt);
  17. #else
  18. static inline int sdca_add_hid_device(struct device *dev, struct sdw_slave *sdw,
  19. struct sdca_entity *entity)
  20. {
  21. return 0;
  22. }
  23. static inline int sdca_hid_process_report(struct sdca_interrupt *interrupt)
  24. {
  25. return 0;
  26. }
  27. #endif
  28. #endif /* __SDCA_HID_H__ */