mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-09 07:23:14 +00:00
5a729246e5
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>
47 lines
1.1 KiB
C
47 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 */
|