aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mfd/cros_ec.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/mfd/cros_ec.h')
-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 3eef9fb9968a..28baee63eaf6 100644
--- a/include/linux/mfd/cros_ec.h
+++ b/include/linux/mfd/cros_ec.h
@@ -305,4 +305,22 @@ extern struct attribute_group cros_ec_attr_group;
305extern struct attribute_group cros_ec_lightbar_attr_group; 305extern struct attribute_group cros_ec_lightbar_attr_group;
306extern struct attribute_group cros_ec_vbc_attr_group; 306extern struct attribute_group cros_ec_vbc_attr_group;
307 307
308/* ACPI GPE handler */
309#ifdef CONFIG_ACPI
310
311int cros_ec_acpi_install_gpe_handler(struct device *dev);
312void cros_ec_acpi_remove_gpe_handler(void);
313void cros_ec_acpi_clear_gpe(void);
314
315#else /* CONFIG_ACPI */
316
317static inline int cros_ec_acpi_install_gpe_handler(struct device *dev)
318{
319 return -ENODEV;
320}
321static inline void cros_ec_acpi_remove_gpe_handler(void) {}
322static inline void cros_ec_acpi_clear_gpe(void) {}
323
324#endif /* CONFIG_ACPI */
325
308#endif /* __LINUX_MFD_CROS_EC_H */ 326#endif /* __LINUX_MFD_CROS_EC_H */