From: Juergen Beisert <jbe@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH] S3C24xx/GPIO: Clean up formatting
Date: Wed, 28 Sep 2011 12:08:11 +0200 [thread overview]
Message-ID: <201109281208.11561.jbe@pengutronix.de> (raw)
Just a clean up
Signed-off-by: Juergen Beisert <jbe@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/ |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next reply other threads:[~2011-09-28 10:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-28 10:08 Juergen Beisert [this message]
2011-09-28 10:12 ` [PATCH] S3C24xx/GPIO: Fix compile time warning Juergen Beisert
2011-09-28 11:53 ` Sascha Hauer
2011-09-28 12:04 ` Juergen Beisert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201109281208.11561.jbe@pengutronix.de \
--to=jbe@pengutronix.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox