diff options
| author | Wolfram Sang <wsa@the-dreams.de> | 2014-09-22 13:41:00 -0400 |
|---|---|---|
| committer | Wolfram Sang <wsa@the-dreams.de> | 2014-09-25 10:07:15 -0400 |
| commit | 17f4a5c47f28de9ea59182f48d07f8c44ee5dcc9 (patch) | |
| tree | 05959f33300e0e93cb9b8f4ffb29ef593521c37e /include/linux | |
| parent | b4a7bd7a386dc6b0bb49cb47614e06e8295d495a (diff) | |
i2c: move acpi code back into the core
Commit 5d98e61d337c ("I2C/ACPI: Add i2c ACPI operation region support")
renamed the i2c-core module. This may cause regressions for
distributions, so put the ACPI code back into the core.
Reported-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Tested-by: Lan Tianyu <tianyu.lan@intel.com>
Tested-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/i2c.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/include/linux/i2c.h b/include/linux/i2c.h index a95efeb53a8b..b556e0ab946f 100644 --- a/include/linux/i2c.h +++ b/include/linux/i2c.h | |||
| @@ -577,20 +577,4 @@ 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 | ||
| 581 | void acpi_i2c_register_devices(struct i2c_adapter *adap); | ||
| 582 | #else | ||
| 583 | static inline void acpi_i2c_register_devices(struct i2c_adapter *adap) { } | ||
| 584 | #endif /* CONFIG_ACPI */ | ||
| 585 | |||
| 586 | #ifdef CONFIG_ACPI_I2C_OPREGION | ||
| 587 | int acpi_i2c_install_space_handler(struct i2c_adapter *adapter); | ||
| 588 | void acpi_i2c_remove_space_handler(struct i2c_adapter *adapter); | ||
| 589 | #else | ||
| 590 | static inline void acpi_i2c_remove_space_handler(struct i2c_adapter *adapter) | ||
| 591 | { } | ||
| 592 | static inline int acpi_i2c_install_space_handler(struct i2c_adapter *adapter) | ||
| 593 | { return 0; } | ||
| 594 | #endif /* CONFIG_ACPI_I2C_OPREGION */ | ||
| 595 | |||
| 596 | #endif /* _LINUX_I2C_H */ | 580 | #endif /* _LINUX_I2C_H */ |
