diff options
Diffstat (limited to 'include/linux/mfd/cros_ec.h')
| -rw-r--r-- | include/linux/mfd/cros_ec.h | 18 |
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; | |||
| 305 | extern struct attribute_group cros_ec_lightbar_attr_group; | 305 | extern struct attribute_group cros_ec_lightbar_attr_group; |
| 306 | extern struct attribute_group cros_ec_vbc_attr_group; | 306 | extern struct attribute_group cros_ec_vbc_attr_group; |
| 307 | 307 | ||
| 308 | /* ACPI GPE handler */ | ||
| 309 | #ifdef CONFIG_ACPI | ||
| 310 | |||
| 311 | int cros_ec_acpi_install_gpe_handler(struct device *dev); | ||
| 312 | void cros_ec_acpi_remove_gpe_handler(void); | ||
| 313 | void cros_ec_acpi_clear_gpe(void); | ||
| 314 | |||
| 315 | #else /* CONFIG_ACPI */ | ||
| 316 | |||
| 317 | static inline int cros_ec_acpi_install_gpe_handler(struct device *dev) | ||
| 318 | { | ||
| 319 | return -ENODEV; | ||
| 320 | } | ||
| 321 | static inline void cros_ec_acpi_remove_gpe_handler(void) {} | ||
| 322 | static 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 */ |
