diff options
author | Lan Tianyu <tianyu.lan@intel.com> | 2014-05-20 08:59:24 -0400 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2014-06-27 08:50:41 -0400 |
commit | da3c6647ee08711c7edc28d7fea4ad69fc5ffcca (patch) | |
tree | 47272da395818ecc9101b27b01808b8cf11f9b35 /include/linux/i2c.h | |
parent | 5d98e61d337c181f199a6cb864569cc4e116ef4c (diff) |
I2C/ACPI: Clean up I2C ACPI code and Add CONFIG_I2C_ACPI config
Clean up ACPI related code in the i2c core and add CONFIG_I2C_ACPI
to enable I2C ACPI code.
Current there is a race between removing I2C ACPI operation region
and ACPI AML code accessing. So make i2c core built-in if CONFIG_I2C_ACPI
is set.
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Lan Tianyu <tianyu.lan@intel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'include/linux/i2c.h')
-rw-r--r-- | include/linux/i2c.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/i2c.h b/include/linux/i2c.h index f7a939a2cb56..ea507665896c 100644 --- a/include/linux/i2c.h +++ b/include/linux/i2c.h | |||
@@ -577,10 +577,12 @@ static inline struct i2c_adapter *of_find_i2c_adapter_by_node(struct device_node | |||
577 | } | 577 | } |
578 | #endif /* CONFIG_OF */ | 578 | #endif /* CONFIG_OF */ |
579 | 579 | ||
580 | #ifdef CONFIG_ACPI | 580 | #ifdef CONFIG_I2C_ACPI |
581 | int acpi_i2c_install_space_handler(struct i2c_adapter *adapter); | 581 | int acpi_i2c_install_space_handler(struct i2c_adapter *adapter); |
582 | void acpi_i2c_remove_space_handler(struct i2c_adapter *adapter); | 582 | void acpi_i2c_remove_space_handler(struct i2c_adapter *adapter); |
583 | void acpi_i2c_register_devices(struct i2c_adapter *adap); | ||
583 | #else | 584 | #else |
585 | static inline void acpi_i2c_register_devices(struct i2c_adapter *adap) { } | ||
584 | static inline void acpi_i2c_remove_space_handler(struct i2c_adapter *adapter) | 586 | static inline void acpi_i2c_remove_space_handler(struct i2c_adapter *adapter) |
585 | { } | 587 | { } |
586 | static inline int acpi_i2c_install_space_handler(struct i2c_adapter *adapter) | 588 | static inline int acpi_i2c_install_space_handler(struct i2c_adapter *adapter) |