Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
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
11struct device;
12struct sdw_slave;
13
14struct sdca_entity;
15struct sdca_interrupt;
16
17#if IS_ENABLED(CONFIG_SND_SOC_SDCA_HID)
18
19int sdca_add_hid_device(struct device *dev, struct sdw_slave *sdw,
20 struct sdca_entity *entity);
21int sdca_hid_process_report(struct sdca_interrupt *interrupt);
22
23#else
24
25static inline int sdca_add_hid_device(struct device *dev, struct sdw_slave *sdw,
26 struct sdca_entity *entity)
27{
28 return 0;
29}
30
31static inline int sdca_hid_process_report(struct sdca_interrupt *interrupt)
32{
33 return 0;
34}
35
36#endif
37
38#endif /* __SDCA_HID_H__ */