Module Name:    src
Committed By:   reinoud
Date:           Sat May 10 11:03:45 UTC 2014

Modified Files:
        src/sys/arch/evbarm/odroid: odroid_machdep.c

Log Message:
refactor pin setting in odroid_device_register() to remove an indent
preventing potentional lots of line breaks due to the 80 char line limit.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/evbarm/odroid/odroid_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/evbarm/odroid/odroid_machdep.c
diff -u src/sys/arch/evbarm/odroid/odroid_machdep.c:1.11 src/sys/arch/evbarm/odroid/odroid_machdep.c:1.12
--- src/sys/arch/evbarm/odroid/odroid_machdep.c:1.11	Fri May  9 22:20:41 2014
+++ src/sys/arch/evbarm/odroid/odroid_machdep.c	Sat May 10 11:03:45 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: odroid_machdep.c,v 1.11 2014/05/09 22:20:41 reinoud Exp $ */
+/*	$NetBSD: odroid_machdep.c,v 1.12 2014/05/10 11:03:45 reinoud Exp $ */
 
 /*
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: odroid_machdep.c,v 1.11 2014/05/09 22:20:41 reinoud Exp $");
+__KERNEL_RCSID(0, "$NetBSD: odroid_machdep.c,v 1.12 2014/05/10 11:03:45 reinoud Exp $");
 
 #include "opt_evbarm_boardtype.h"
 #include "opt_exynos.h"
@@ -553,22 +553,22 @@ odroid_device_register(device_t self, vo
 	if (device_is_a(self, "mct"))
 		prop_dictionary_set_cstring(dict, "heartbeat", "led1");
 
-	if (device_is_a(self, "exyogpio")) {
 #ifdef EXYNOS4
-		if (IS_EXYNOS4_P()) {
-			/* unused bits */
-			odroid_exynos4_gpio_ncs(self, dict);
-			/* explicit pin settings */
-			prop_dictionary_set_cstring(dict, "led1", ">GPC1[0]");
-		}
+	if (device_is_a(self, "exyogpio") && (IS_EXYNOS4_P())) {
+		/* unused bits */
+		odroid_exynos4_gpio_ncs(self, dict);
+
+		/* explicit pin settings */
+		prop_dictionary_set_cstring(dict, "led1", ">GPC1[0]");
+	}
 #endif
 #ifdef EXYNOS5
-		if (IS_EXYNOS5_P()) {
-			/* unused bits */
-			odroid_exynos5_gpio_ncs(self, dict);
-			/* explicit pin settings */
-		}
-#endif
+	if (device_is_a(self, "exyogpio") && (IS_EXYNOS5_P())) {
+		/* unused bits */
+		odroid_exynos5_gpio_ncs(self, dict);
+
+		/* explicit pin settings */
 	}
+#endif
 }
 

Reply via email to