mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 18:39:59 +00:00
![Thomas Gleixner](/assets/img/avatar_default.png)
Based on the normalized pattern: this program is free software you can redistribute it and/or modify it under the terms of the gnu general public license version 2 as published by the free software foundation this program is distributed as is without any warranty of any kind whether express or implied without even the implied warranty of merchantability or fitness for a particular purpose see the gnu general public license for more details extracted by the scancode license scanner the SPDX license identifier GPL-2.0-only has been chosen to replace the boilerplate/reference. Reviewed-by: Allison Randal <allison@lohutok.net> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
46 lines
1.1 KiB
C
46 lines
1.1 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/* pm_wakeirq.h - Device wakeirq helper functions */
|
|
|
|
#ifndef _LINUX_PM_WAKEIRQ_H
|
|
#define _LINUX_PM_WAKEIRQ_H
|
|
|
|
#ifdef CONFIG_PM
|
|
|
|
extern int dev_pm_set_wake_irq(struct device *dev, int irq);
|
|
extern int dev_pm_set_dedicated_wake_irq(struct device *dev, int irq);
|
|
extern int dev_pm_set_dedicated_wake_irq_reverse(struct device *dev, int irq);
|
|
extern void dev_pm_clear_wake_irq(struct device *dev);
|
|
extern void dev_pm_enable_wake_irq(struct device *dev);
|
|
extern void dev_pm_disable_wake_irq(struct device *dev);
|
|
|
|
#else /* !CONFIG_PM */
|
|
|
|
static inline int dev_pm_set_wake_irq(struct device *dev, int irq)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline int dev_pm_set_dedicated_wake_irq(struct device *dev, int irq)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline int dev_pm_set_dedicated_wake_irq_reverse(struct device *dev, int irq)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline void dev_pm_clear_wake_irq(struct device *dev)
|
|
{
|
|
}
|
|
|
|
static inline void dev_pm_enable_wake_irq(struct device *dev)
|
|
{
|
|
}
|
|
|
|
static inline void dev_pm_disable_wake_irq(struct device *dev)
|
|
{
|
|
}
|
|
|
|
#endif /* CONFIG_PM */
|
|
#endif /* _LINUX_PM_WAKEIRQ_H */
|