sunxi: Remove dead ifdefs in sunxi-common.h
Samuel Holland
maintainerPATCH 1/1 sunxi: Remove dead ifdefs in sunxi-common.h
As variables were moved to Kconfig, some of the surrounding ifdefs were left around, even though they were empty. Clean them up.
Signed-off-by Samuel Holland <[email protected]>
--- include/configs/sunxi-common.h | 15 --------------- 1 file changed, 15 deletions(-)
include/configs/sunxi-common.h +0 -15
@@ -134,11 +134,6 @@#define CONFIG_BOARD_SIZE_LIMIT 0x7e000#endif -#if CONFIG_MMC_SUNXI_SLOT_EXTRA !=-1 -/* If we have two devices (most likely eMMC + MMC), favour the eMMC */ -#else -/* Otherwise, use the only device we have */ -#endif #define CONFIG_SYS_MMC_MAX_DEVICE 4#endif
@@ -199,10 +194,6 @@/* I2C */ -#if definedCONFIG_AXP152_POWER || definedCONFIG_AXP209_POWER || \ - definedCONFIG_SY8106A_POWER -#endif -#if definedCONFIG_I2C0_ENABLE || definedCONFIG_I2C1_ENABLE || \ definedCONFIG_I2C2_ENABLE || definedCONFIG_I2C3_ENABLE || \ definedCONFIG_I2C4_ENABLE || definedCONFIG_R_I2C_ENABLE
@@ -232,12 +223,6 @@ extern int soft_i2c_gpio_scl;#define CONFIG_VIDEO_LCD_I2C_BUS -1/* NA, but necessary to compile */ #endif -/* PMU */ -#if definedCONFIG_AXP152_POWER || definedCONFIG_AXP209_POWER || \ - definedCONFIG_AXP221_POWER || definedCONFIG_AXP818_POWER || \ - definedCONFIG_SY8106A_POWER -#endif -#ifdef CONFIG_REQUIRE_SERIAL_CONSOLE #if CONFIG_CONS_INDEX ==1 #ifdef CONFIG_MACH_SUN9I
Signature · 1 line
2.26.2
PATCH 1/1 sunxi: Remove dead ifdefs in sunxi-common.h
On Mon, 8 Feb 2021 00:04:57 -0600
Samuel Holland <[email protected]> wrote:
Hi,
Quoted 4 lines
As variables were moved to
Kconfig, some of the surrounding ifdefs were left around, even though they were empty. Clean them up.Signed-off-by Samuel Holland <[email protected]>
Indeed, thanks for the cleanup!
Reviewed-by Andre Przywara <[email protected]>
Cheers,
Andre
Quoted 44 lines
--- include/configs/sunxi-common.h | 15 --------------- 1 file changed, 15 deletions(-)include/configs/sunxi-common.h +0
-15@@ -134,11 +134,6 @@#define CONFIG_BOARD_SIZE_LIMIT 0x7e000#endif -#if CONFIG_MMC_SUNXI_SLOT_EXTRA !=-1 -/* If we have two devices (most likely eMMC + MMC), favour the eMMC */ -#else -/* Otherwise, use the only device we have */ -#endif #define CONFIG_SYS_MMC_MAX_DEVICE 4#endif @@ -199,10 +194,6 @@/* I2C */ -#if definedCONFIG_AXP152_POWER || definedCONFIG_AXP209_POWER || \ - definedCONFIG_SY8106A_POWER -#endif -#if definedCONFIG_I2C0_ENABLE || definedCONFIG_I2C1_ENABLE || \ definedCONFIG_I2C2_ENABLE || definedCONFIG_I2C3_ENABLE || \ definedCONFIG_I2C4_ENABLE || definedCONFIG_R_I2C_ENABLE @@ -232,12 +223,6 @@ extern int soft_i2c_gpio_scl;#define CONFIG_VIDEO_LCD_I2C_BUS -1/* NA, but necessary to compile */ #endif -/* PMU */ -#if definedCONFIG_AXP152_POWER || definedCONFIG_AXP209_POWER || \ - definedCONFIG_AXP221_POWER || definedCONFIG_AXP818_POWER || \ - definedCONFIG_SY8106A_POWER -#endif -#ifdef CONFIG_REQUIRE_SERIAL_CONSOLE #if CONFIG_CONS_INDEX ==1 #ifdef CONFIG_MACH_SUN9I