mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-18 17:54:13 +08:00
366047515c
Commit da3c6647(I2C/ACPI: Clean up I2C ACPI code and Add CONFIG_I2C_ACPI config) adds a new kernel config I2C_ACPI and make I2C core built in when the config is selected. This is wrong because distributions etc generally compile I2C as a module and the commit broken that. This patch is to rename I2C_ACPI to ACPI_I2C_OPREGION. New config only controls ACPI I2C operation region code and depends on I2C=y. Signed-off-by: Lan Tianyu <tianyu.lan@intel.com> Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com> [wsa: removed unrelated change for Kconfig] Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
18 lines
459 B
Makefile
18 lines
459 B
Makefile
#
|
|
# Makefile for the i2c core.
|
|
#
|
|
|
|
i2ccore-y := i2c-core.o
|
|
i2ccore-$(CONFIG_ACPI) += i2c-acpi.o
|
|
|
|
obj-$(CONFIG_I2C_BOARDINFO) += i2c-boardinfo.o
|
|
obj-$(CONFIG_I2C) += i2ccore.o
|
|
obj-$(CONFIG_I2C_SMBUS) += i2c-smbus.o
|
|
obj-$(CONFIG_I2C_CHARDEV) += i2c-dev.o
|
|
obj-$(CONFIG_I2C_MUX) += i2c-mux.o
|
|
obj-y += algos/ busses/ muxes/
|
|
obj-$(CONFIG_I2C_STUB) += i2c-stub.o
|
|
|
|
ccflags-$(CONFIG_I2C_DEBUG_CORE) := -DDEBUG
|
|
CFLAGS_i2c-core.o := -Wno-deprecated-declarations
|