ASoC: rt5663: fix a debug statement
[linux-2.6/btrfs-unstable.git] / include / linux / pm_wakeirq.h
blobcd5b62db908454dc7f7fe2acc9479c467e1a1f67
1 /*
2 * pm_wakeirq.h - Device wakeirq helper functions
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
8 * This program is distributed "as is" WITHOUT ANY WARRANTY of any
9 * kind, whether express or implied; without even the implied warranty
10 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
14 #ifndef _LINUX_PM_WAKEIRQ_H
15 #define _LINUX_PM_WAKEIRQ_H
17 #ifdef CONFIG_PM
19 extern int dev_pm_set_wake_irq(struct device *dev, int irq);
20 extern int dev_pm_set_dedicated_wake_irq(struct device *dev,
21 int irq);
22 extern void dev_pm_clear_wake_irq(struct device *dev);
23 extern void dev_pm_enable_wake_irq(struct device *dev);
24 extern void dev_pm_disable_wake_irq(struct device *dev);
26 #else /* !CONFIG_PM */
28 static inline int dev_pm_set_wake_irq(struct device *dev, int irq)
30 return 0;
33 static inline int dev_pm_set_dedicated_wake_irq(struct device *dev, int irq)
35 return 0;
38 static inline void dev_pm_clear_wake_irq(struct device *dev)
42 static inline void dev_pm_enable_wake_irq(struct device *dev)
46 static inline void dev_pm_disable_wake_irq(struct device *dev)
50 #endif /* CONFIG_PM */
51 #endif /* _LINUX_PM_WAKEIRQ_H */