1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (C) 2023 Cirrus Logic, Inc. and
4 * Cirrus Logic International Semiconductor Ltd.
10 #include <linux/soundwire/sdw.h>
11 #include <linux/fwnode.h>
13 #if IS_ENABLED(CONFIG_IRQ_DOMAIN)
15 int sdw_irq_create(struct sdw_bus *bus,
16 struct fwnode_handle *fwnode);
17 void sdw_irq_delete(struct sdw_bus *bus);
18 void sdw_irq_create_mapping(struct sdw_slave *slave);
19 void sdw_irq_dispose_mapping(struct sdw_slave *slave);
21 #else /* CONFIG_IRQ_DOMAIN */
23 static inline int sdw_irq_create(struct sdw_bus *bus,
24 struct fwnode_handle *fwnode)
29 static inline void sdw_irq_delete(struct sdw_bus *bus)
33 static inline void sdw_irq_create_mapping(struct sdw_slave *slave)
37 static inline void sdw_irq_dispose_mapping(struct sdw_slave *slave)
41 #endif /* CONFIG_IRQ_DOMAIN */
43 #endif /* __SDW_IRQ_H */