Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / drivers / soundwire / irq.h
blob58a58046d92b83adcc5fb769de7d43c9158ce5eb
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * Copyright (C) 2023 Cirrus Logic, Inc. and
4 * Cirrus Logic International Semiconductor Ltd.
5 */
7 #ifndef __SDW_IRQ_H
8 #define __SDW_IRQ_H
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)
26 return 0;
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 */