#ifndef ACPI_BUTTON_H #define ACPI_BUTTON_H #include #if IS_ENABLED(CONFIG_ACPI_BUTTON) 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); #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 /* IS_ENABLED(CONFIG_ACPI_BUTTON) */ #endif /* ACPI_BUTTON_H */ t Git repository'/>
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2016-04-22 11:52:49 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2016-04-22 11:52:49 -0700
commit09502d9fffd84d22dd1fba9fd4cf0d880a5da377 (patch)
treebbec3a03be7d53222cf085535657360fa595e472
parentddce192106e4f984123884f8e878f66ace94b573 (diff)
parent56b367c0cd67d4c3006738e7dc9dda9273fd2bfe (diff)
Merge tag 'pinctrl-v4.6-3' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl
Pull pin control fixes from Linus Walleij: "Some pin control driver fixes came in. One headed for stable and the other two are just ordinary merge window fixes. - Make the i.MX driver select REGMAP as a dependency - Fix up the Mediatek debounce time unit - Fix a real hairy ffs vs __ffs issue in the Single pinctrl driver" * tag 'pinctrl-v4.6-3' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl: pinctrl: single: Fix pcs_parse_bits_in_pinctrl_entry to use __ffs than ffs pinctrl: mediatek: correct debounce time unit in mtk_gpio_set_debounce pinctrl: imx: Kconfig: PINCTRL_IMX select REGMAP