aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mfd
diff options
context:
space:
mode:
authorArchana Patni <archana.patni@intel.com>2017-02-01 11:22:03 -0500
committerLee Jones <lee.jones@linaro.org>2017-04-27 04:25:03 -0400
commite04653a9dcf4d98defe2149c885382e5cc72082f (patch)
treeb897a9dee0fe25d381ae806692aad874c6114634 /include/linux/mfd
parent18973ceb89d5022992e5707e2b0a268ddc39b7e0 (diff)
mfd: cros_ec: Add ACPI GPE handler for LID0 devices
This patch installs an ACPI GPE handler for LID0 ACPI device to indicate ACPI core that this GPE should stay enabled for lid to work in suspend to idle path. Signed-off-by: Archana Patni <archana.patni@intel.com> Signed-off-by: Thierry Escande <thierry.escande@collabora.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'include/linux/mfd')
-rw-r--r--include/linux/mfd/cros_ec.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/linux/mfd/cros_ec.h b/include/linux/mfd/cros_ec.h
index 7a01c94496f1..b3d04de684d4 100644
--- a/include/linux/mfd/cros_ec.h
+++ b/include/linux/mfd/cros_ec.h
@@ -304,4 +304,22 @@ extern struct attribute_group cros_ec_attr_group;
304extern struct attribute_group cros_ec_lightbar_attr_group; 304extern struct attribute_group cros_ec_lightbar_attr_group;
305extern struct attribute_group cros_ec_vbc_attr_group; 305extern struct attribute_group cros_ec_vbc_attr_group;
306 306
307/* ACPI GPE handler */
308#ifdef CONFIG_ACPI
309
310int cros_ec_acpi_install_gpe_handler(struct device *dev);
311void cros_ec_acpi_remove_gpe_handler(void);
312void cros_ec_acpi_clear_gpe(void);
313
314#else /* CONFIG_ACPI */
315
316static inline int cros_ec_acpi_install_gpe_handler(struct device *dev)
317{
318 return -ENODEV;
319}
320static inline void cros_ec_acpi_remove_gpe_handler(void) {}
321static inline void cros_ec_acpi_clear_gpe(void) {}
322
323#endif /* CONFIG_ACPI */
324
307#endif /* __LINUX_MFD_CROS_EC_H */ 325#endif /* __LINUX_MFD_CROS_EC_H */