[PATCH] S3C24xx/GPIO: Clean up formatting

Juergen Beisert jbe at pengutronix.de
Wed Sep 28 06:08:11 EDT 2011


Just a clean up

Signed-off-by: Juergen Beisert <jbe at pengutronix.de>

---
 arch/arm/mach-s3c24xx/gpio-s3c24x0.c |    7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

Index: barebox-git/arch/arm/mach-s3c24xx/gpio-s3c24x0.c
===================================================================
--- barebox-git.orig/arch/arm/mach-s3c24xx/gpio-s3c24x0.c
+++ barebox-git/arch/arm/mach-s3c24xx/gpio-s3c24x0.c
@@ -67,7 +67,6 @@ int gpio_direction_input(unsigned gpio)
 	return 0;
 }
 
-
 int gpio_direction_output(unsigned gpio, int value)
 {
 	unsigned group = gpio >> 5;
@@ -177,14 +176,12 @@ int gpio_is_valid(int gpio)
 
 	offset = group_offset[group];
 
-
 #ifdef CONFIG_CPU_S3C2440
 	if ((GPADAT + offset) < GPJCON)
 		return 1;
 #else
 	if ((GPADAT + offset) < GPHCON)
 		return 1;
-
 #endif
-		return 0;
-	}
+	return 0;
+}

-- 
Pengutronix e.K.                              | Juergen Beisert             |
Linux Solutions for Science and Industry      | Phone: +49-5121-206917-5128 |
Vertretung Sued/Muenchen, Germany             | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686              | http://www.pengutronix.de/  |



More information about the barebox mailing list