Linux Audio

Check our new training course

Loading...
v5.14.15
 1/*
 2 * pm_wakeirq.h - Device wakeirq helper functions
 3 *
 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.
 7 *
 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.
12 */
13
14#ifndef _LINUX_PM_WAKEIRQ_H
15#define _LINUX_PM_WAKEIRQ_H
16
17#ifdef CONFIG_PM
18
19extern int dev_pm_set_wake_irq(struct device *dev, int irq);
20extern int dev_pm_set_dedicated_wake_irq(struct device *dev,
21					 int irq);
22extern void dev_pm_clear_wake_irq(struct device *dev);
23extern void dev_pm_enable_wake_irq(struct device *dev);
24extern void dev_pm_disable_wake_irq(struct device *dev);
25
26#else	/* !CONFIG_PM */
27
28static inline int dev_pm_set_wake_irq(struct device *dev, int irq)
29{
30	return 0;
31}
32
33static inline int dev_pm_set_dedicated_wake_irq(struct device *dev, int irq)
34{
35	return 0;
36}
37
38static inline void dev_pm_clear_wake_irq(struct device *dev)
39{
40}
41
42static inline void dev_pm_enable_wake_irq(struct device *dev)
43{
 
44}
45
46static inline void dev_pm_disable_wake_irq(struct device *dev)
47{
48}
49
50#endif	/* CONFIG_PM */
51#endif	/* _LINUX_PM_WAKEIRQ_H */
v6.9.4
 1/* SPDX-License-Identifier: GPL-2.0-only */
 2/* pm_wakeirq.h - Device wakeirq helper functions */
 
 
 
 
 
 
 
 
 
 
 3
 4#ifndef _LINUX_PM_WAKEIRQ_H
 5#define _LINUX_PM_WAKEIRQ_H
 6
 7#ifdef CONFIG_PM
 8
 9extern int dev_pm_set_wake_irq(struct device *dev, int irq);
10extern int dev_pm_set_dedicated_wake_irq(struct device *dev, int irq);
11extern int dev_pm_set_dedicated_wake_irq_reverse(struct device *dev, int irq);
12extern void dev_pm_clear_wake_irq(struct device *dev);
 
 
13
14#else	/* !CONFIG_PM */
15
16static inline int dev_pm_set_wake_irq(struct device *dev, int irq)
17{
18	return 0;
19}
20
21static inline int dev_pm_set_dedicated_wake_irq(struct device *dev, int irq)
22{
23	return 0;
24}
25
26static inline int dev_pm_set_dedicated_wake_irq_reverse(struct device *dev, int irq)
 
 
 
 
27{
28	return 0;
29}
30
31static inline void dev_pm_clear_wake_irq(struct device *dev)
32{
33}
34
35#endif	/* CONFIG_PM */
36#endif	/* _LINUX_PM_WAKEIRQ_H */