No need to be so repetitive.

Signed-off-by: Ian Campbell <i...@hellion.org.uk>
---
 board/sunxi/Kconfig | 31 ++++---------------------------
 1 file changed, 4 insertions(+), 27 deletions(-)

diff --git a/board/sunxi/Kconfig b/board/sunxi/Kconfig
index 05defac..c4b3167 100644
--- a/board/sunxi/Kconfig
+++ b/board/sunxi/Kconfig
@@ -1,31 +1,8 @@
-if TARGET_SUN4I
-
-config SYS_CONFIG_NAME
-       default "sun4i"
-
-endif
-
-if TARGET_SUN5I
-
-config SYS_CONFIG_NAME
-       default "sun5i"
-
-endif
-
-if TARGET_SUN6I
-
 config SYS_CONFIG_NAME
-       string
-       default "sun6i"
-
-endif
-
-if TARGET_SUN7I
-
-config SYS_CONFIG_NAME
-       default "sun7i"
-
-endif
+       default "sun4i" if TARGET_SUN4I
+       default "sun5i" if TARGET_SUN5I
+       default "sun6i" if TARGET_SUN6I
+       default "sun7i" if TARGET_SUN7I
 
 if TARGET_SUN4I || TARGET_SUN5I || TARGET_SUN6I || TARGET_SUN7I
 
-- 
2.1.0

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to