mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 17:08:10 +00:00
e7b915219b
Drop the wake-irq enable and disable helpers which have not been used
since commit bed570307e
("PM / wakeirq: Fix dedicated wakeirq for
drivers not using autosuspend").
Note that these functions are essentially just leftovers from the first
iteration of the wake-irq implementation where device drivers were
supposed to call these functions themselves instead of PM core (as
is also indicated by the bogus kernel doc comments).
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Reviewed-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
36 lines
863 B
C
36 lines
863 B
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);
|
|
|
|
#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)
|
|
{
|
|
}
|
|
|
|
#endif /* CONFIG_PM */
|
|
#endif /* _LINUX_PM_WAKEIRQ_H */
|