printf: Remove unused 'bprintf'
[drm/drm-misc.git] / include / linux / pm_wakeirq.h
blobd9642c6cf85211af603ce39e280a5b4de6617ee5
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /* pm_wakeirq.h - Device wakeirq helper functions */
4 #ifndef _LINUX_PM_WAKEIRQ_H
5 #define _LINUX_PM_WAKEIRQ_H
7 #ifdef CONFIG_PM
9 extern int dev_pm_set_wake_irq(struct device *dev, int irq);
10 extern int dev_pm_set_dedicated_wake_irq(struct device *dev, int irq);
11 extern int dev_pm_set_dedicated_wake_irq_reverse(struct device *dev, int irq);
12 extern void dev_pm_clear_wake_irq(struct device *dev);
14 #else /* !CONFIG_PM */
16 static inline int dev_pm_set_wake_irq(struct device *dev, int irq)
18 return 0;
21 static inline int dev_pm_set_dedicated_wake_irq(struct device *dev, int irq)
23 return 0;
26 static inline int dev_pm_set_dedicated_wake_irq_reverse(struct device *dev, int irq)
28 return 0;
31 static inline void dev_pm_clear_wake_irq(struct device *dev)
35 #endif /* CONFIG_PM */
36 #endif /* _LINUX_PM_WAKEIRQ_H */