Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

i2c: Change to new flag variable

Replace EXTRA_CFLAGS with ccflags-y.

Signed-off-by: matt mooney <mfm@muteddisk.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>

authored by

matt mooney and committed by
Jean Delvare
ef9d9b8f a8d7be81

+4 -12
+1 -3
drivers/i2c/Makefile
··· 9 9 obj-$(CONFIG_I2C_MUX) += i2c-mux.o 10 10 obj-y += algos/ busses/ muxes/ 11 11 12 - ifeq ($(CONFIG_I2C_DEBUG_CORE),y) 13 - EXTRA_CFLAGS += -DDEBUG 14 - endif 12 + ccflags-$(CONFIG_I2C_DEBUG_CORE) := -DDEBUG
+1 -3
drivers/i2c/algos/Makefile
··· 6 6 obj-$(CONFIG_I2C_ALGOPCF) += i2c-algo-pcf.o 7 7 obj-$(CONFIG_I2C_ALGOPCA) += i2c-algo-pca.o 8 8 9 - ifeq ($(CONFIG_I2C_DEBUG_ALGO),y) 10 - EXTRA_CFLAGS += -DDEBUG 11 - endif 9 + ccflags-$(CONFIG_I2C_DEBUG_ALGO) := -DDEBUG
+1 -3
drivers/i2c/busses/Makefile
··· 76 76 obj-$(CONFIG_SCx200_ACB) += scx200_acb.o 77 77 obj-$(CONFIG_SCx200_I2C) += scx200_i2c.o 78 78 79 - ifeq ($(CONFIG_I2C_DEBUG_BUS),y) 80 - EXTRA_CFLAGS += -DDEBUG 81 - endif 79 + ccflags-$(CONFIG_I2C_DEBUG_BUS) := -DDEBUG
+1 -3
drivers/i2c/muxes/Makefile
··· 3 3 4 4 obj-$(CONFIG_I2C_MUX_PCA954x) += pca954x.o 5 5 6 - ifeq ($(CONFIG_I2C_DEBUG_BUS),y) 7 - EXTRA_CFLAGS += -DDEBUG 8 - endif 6 + ccflags-$(CONFIG_I2C_DEBUG_BUS) := -DDEBUG