S3C24xx/GPIO: Clean up formatting
Subsystems (2)
PATCH 1/1 S3C24xx/GPIO: Clean up formatting
Just a clean up
--- arch/arm/mach-s3c24xx/gpio-s3c24x0.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)
arch/arm/mach-s3c24xx/gpio-s3c24x0.c +2 -5
@@ -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 ; +}
Signature · 9 lines
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 [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 1/1 S3C24xx/GPIO: Fix compile time warning
Without this patch the compiler spits a warning:
arch/arm/mach-s3c24xx/gpio-s3c24x0.c: In function 'gpio_is_valid':arch/arm/mach-s3c24xx/gpio-s3c24x0.c:176:11: warning: unused variable 'reg' arch/arm/mach-s3c24xx/gpio-s3c24x0.c:174:11: warning: unused variable 'bit'
--- arch/arm/mach-s3c24xx/gpio-s3c24x0.c | 2 -- 1 file changed, 2 deletions(-)
arch/arm/mach-s3c24xx/gpio-s3c24x0.c +0 -2
@@ -170,9 +170,7 @@ void s3c_gpio_mode(unsigned gpio_mode)int gpio_is_valid (int gpio) {unsigned group = gpio >>5 ; -unsigned bit = gpio %32 ;unsigned offset; -uint32_t reg; offset = group_offset[group];
Signature · 9 lines
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 [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Re: [PATCH] S3C24xx/GPIO: Fix compile time warning
Hi Jürgen,
Quoted 17 lines · Juergen Beisert
Without this patch the compiler spits a warning:
arch/arm/mach-s3c24xx/gpio-s3c24x0.c: In function 'gpio_is_valid':arch/arm/mach-s3c24xx/gpio-s3c24x0.c:176:11: warning: unused variable 'reg'arch/arm/mach-s3c24xx/gpio-s3c24x0.c:174:11: warning: unused variable 'bit'Signed-off-by Juergen Beisert <[email protected]>--- arch/arm/mach-s3c24xx/gpio-s3c24x0.c | 2 -- 1 file changed, 2 deletions(-)Index:
barebox-git/arch/arm/mach-s3c24xx/gpio-s3c24x0.c
===================================================================
arch/arm/mach-s3c24xx/gpio-s3c24x0.c void s3c_gpio_mode(unsigned gpio_mode) · line 175
Quoted 6 lines
arch/arm/mach-s3c24xx/gpio-s3c24x0.c +0
-2@@ -170,9 +170,7 @@ void s3c_gpio_mode(unsigned gpio_mode)int gpio_is_valid (int gpio) {unsigned group = gpio >>5 ; -unsigned bit = gpio %32 ;unsigned offset; -uint32_t reg;
Both patches do not apply. We do not have a gpio_is_valid() function in this file.
Sascha
Signature · 9 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Re: [PATCH] S3C24xx/GPIO: Fix compile time warning
Quoted 14 lines · Sascha Hauer
Quoted 13 lines · Juergen Beisert
Without this patch the compiler spits a warning:
arch/arm/mach-s3c24xx/gpio-s3c24x0.c: In function 'gpio_is_valid':arch/arm/mach-s3c24xx/gpio-s3c24x0.c:176:11: warning: unused variable 'reg'arch/arm/mach-s3c24xx/gpio-s3c24x0.c:174:11: warning: unused variable 'bit'Signed-off-by Juergen Beisert <[email protected]>--- arch/arm/mach-s3c24xx/gpio-s3c24x0.c | 2 -- 1 file changed, 2 deletions(-)
Quoted 14 lines
arch/arm/mach-s3c24xx/gpio-s3c24x0.c void s3c_gpio_mode(unsigned gpio_mode) · line 175
Quoted 11 lines
Index:
barebox-git/arch/arm/mach-s3c24xx/gpio-s3c24x0.c
===================================================================arch/arm/mach-s3c24xx/gpio-s3c24x0.c +0
-2@@ -170,9 +170,7 @@ void s3c_gpio_mode(unsigned gpio_mode)int gpio_is_valid (int gpio) {unsigned group = gpio >>5 ; -unsigned bit = gpio %32 ;unsigned offset; -uint32_t reg;Both patches do not apply. We do not have a
gpio_is_valid()function in this file.
Arrghh, you are right. /me should use the correct branch...
Juergen
Signature · 9 lines
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 [email protected] http://lists.infradead.org/mailman/listinfo/barebox