I2C/ACPI: Clean up I2C ACPI code and Add CONFIG_I2C_ACPI config
authorLan Tianyu <tianyu.lan@intel.com>
Tue, 20 May 2014 12:59:24 +0000 (20:59 +0800)
committerWolfram Sang <wsa@the-dreams.de>
Fri, 27 Jun 2014 12:50:41 +0000 (14:50 +0200)
commitda3c6647ee08711c7edc28d7fea4ad69fc5ffcca
tree47272da395818ecc9101b27b01808b8cf11f9b35
parent5d98e61d337c181f199a6cb864569cc4e116ef4c
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>
drivers/i2c/Kconfig
drivers/i2c/Makefile
drivers/i2c/i2c-acpi.c
drivers/i2c/i2c-core.c
include/linux/i2c.h