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 8 #ifndef __SDCA_HID_H__ 9 #define __SDCA_HID_H__ 10 11 struct device; 12 struct sdw_slave; 13 14 struct sdca_entity; 15 struct sdca_interrupt; 16 17 #if IS_ENABLED(CONFIG_SND_SOC_SDCA_HID) 18 19 int sdca_add_hid_device(struct device *dev, struct sdw_slave *sdw, 20 struct sdca_entity *entity); 21 int sdca_hid_process_report(struct sdca_interrupt *interrupt); 22 23 #else 24 25 static inline int sdca_add_hid_device(struct device *dev, struct sdw_slave *sdw, 26 struct sdca_entity *entity) 27 { 28 return 0; 29 } 30 31 static inline int sdca_hid_process_report(struct sdca_interrupt *interrupt) 32 { 33 return 0; 34 } 35 36 #endif 37 38 #endif /* __SDCA_HID_H__ */ 39