2009-09-10 22:28:02 +00:00
|
|
|
#ifndef ACPI_BUTTON_H
|
|
|
|
#define ACPI_BUTTON_H
|
|
|
|
|
|
|
|
#include <linux/notifier.h>
|
|
|
|
|
2009-09-15 23:57:24 +00:00
|
|
|
#if defined(CONFIG_ACPI_BUTTON) || defined(CONFIG_ACPI_BUTTON_MODULE)
|
2009-09-10 22:28:02 +00:00
|
|
|
extern int acpi_lid_notifier_register(struct notifier_block *nb);
|
|
|
|
extern int acpi_lid_notifier_unregister(struct notifier_block *nb);
|
|
|
|
extern int acpi_lid_open(void);
|
2009-09-15 23:57:24 +00:00
|
|
|
#else
|
|
|
|
static inline int acpi_lid_notifier_register(struct notifier_block *nb)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
static inline int acpi_lid_notifier_unregister(struct notifier_block *nb)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
static inline int acpi_lid_open(void)
|
|
|
|
{
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
#endif /* defined(CONFIG_ACPI_BUTTON) || defined(CONFIG_ACPI_BUTTON_MODULE) */
|
2009-09-10 22:28:02 +00:00
|
|
|
|
|
|
|
#endif /* ACPI_BUTTON_H */
|