staging/cptm1217: fix checkpatch warnings
PATCH 1/1 staging/cptm1217: fix checkpatch warnings
The below checkpatch warns was fixed,
drivers/staging/cptm1217/clearpad_tm1217.c:400: WARNING: quoted string split across lines drivers/staging/cptm1217/cp_tm1217.h:5: ERROR: open brace '{' following struct go on the same line
--- drivers/staging/cptm1217/clearpad_tm1217.c | 4 ++-- drivers/staging/cptm1217/cp_tm1217.h | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-)
drivers/staging/cptm1217/clearpad_tm1217.c +2 -2
@@ -396,8 +396,8 @@ static int cp_tm1217_setup_gpio_irq(struct cp_tm1217_device *ts) retval =gpio_to_irq (ts->gpio);if (retval <0 ) { -dev_err (ts->dev,"cp_tm1217: GPIO to IRQ failedi," -" error %d\n" , retval); +dev_err (ts->dev,"cp_tm1217: GPIO to IRQ failedi, error %d\n" , + retval);gpio_free (ts->gpio); } dev_dbg(ts->dev,
drivers/staging/cptm1217/cp_tm1217.h +1 -2
@@ -1,8 +1,7 @@#ifndef __LINUX_I2C_CP_TM1217_H#define __LINUX_I2C_CP_TM1217_H -struct cp_tm1217_platform_data -{ +struct cp_tm1217_platform_data {int gpio;/* If not set uses the IRQ resource 0 */ };
Signature · 1 line
1.7.5.4
Quoted 16 lines · Toshiaki Yamane
The below checkpatch warns was fixed,
drivers/staging/cptm1217/clearpad_tm1217.c:400: WARNING: quoted string split across linesdrivers/staging/cptm1217/cp_tm1217.h:5: ERROR: open brace '{' following struct go on the same lineSigned-off-by Toshiaki Yamane <[email protected]>--- drivers/staging/cptm1217/clearpad_tm1217.c | 4 ++-- drivers/staging/cptm1217/cp_tm1217.h | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-)drivers/staging/cptm1217/clearpad_tm1217.c +0
-0
drivers/staging/cptm1217/clearpad_tm1217.c static int cp_tm1217_setup_gpio_irq(struct cp_tm1217_device *ts) · line 399
Quoted 6 lines
drivers/staging/cptm1217/clearpad_tm1217.c +1
-2@@ -396,8 +396,8 @@ static int cp_tm1217_setup_gpio_irq(struct cp_tm1217_device *ts) retval =gpio_to_irq (ts->gpio);if (retval <0 ) { -dev_err (ts->dev,"cp_tm1217: GPIO to IRQ failedi," -" error %d\n" , retval); + dev_err(ts->dev, "cp_tm1217: GPIO to IRQ failedi, error %d\n",
there is also typo (you can fix that as well) ^^^^
Quoted 21 lines
drivers/staging/cptm1217/clearpad_tm1217.c +1
-0+ retval);gpio_free (ts->gpio); } dev_dbg(ts->dev,drivers/staging/cptm1217/cp_tm1217.h +1
-3@@ -1,8 +1,7 @@#ifndef __LINUX_I2C_CP_TM1217_H#define __LINUX_I2C_CP_TM1217_H -struct cp_tm1217_platform_data -{ +struct cp_tm1217_platform_data {int gpio;/* If not set uses the IRQ resource 0 */ }; --1.7.5.4
Quoted 5 lines
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
marek
Signature · 10 lines
as simple and primitive as possible ------------------------------------------------- Marek Belisko - OPEN-NANDRA Freelance Developer Ruska Nova Ves 219 | Presov, 08005 Slovak Republic Tel: +421 915 052 184 skype: marekwhite twitter: #opennandra web: http://open-nandra.com
PATCH 1/1 staging/cptm1217: fix checkpatch warnings
In reply to Toshiaki YamaneThe below checkpatch warn, error, and typo was fixed,
drivers/staging/cptm1217/clearpad_tm1217.c:400: WARNING: quoted string split across lines drivers/staging/cptm1217/cp_tm1217.h:5: ERROR: open brace '{' following struct go on the same line
--- drivers/staging/cptm1217/clearpad_tm1217.c | 4 ++-- drivers/staging/cptm1217/cp_tm1217.h | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-)
drivers/staging/cptm1217/clearpad_tm1217.c +2 -2
@@ -396,8 +396,8 @@ static int cp_tm1217_setup_gpio_irq(struct cp_tm1217_device *ts) retval =gpio_to_irq (ts->gpio);if (retval <0 ) { -dev_err (ts->dev,"cp_tm1217: GPIO to IRQ failedi," -" error %d\n" , retval); +dev_err (ts->dev,"cp_tm1217: GPIO to IRQ failed, error %d\n" , + retval);gpio_free (ts->gpio); } dev_dbg(ts->dev,
drivers/staging/cptm1217/cp_tm1217.h +1 -2
@@ -1,8 +1,7 @@#ifndef __LINUX_I2C_CP_TM1217_H#define __LINUX_I2C_CP_TM1217_H -struct cp_tm1217_platform_data -{ +struct cp_tm1217_platform_data {int gpio;/* If not set uses the IRQ resource 0 */ };
Signature · 1 line
1.7.5.4
PATCH 1/1 staging/cptm1217: fix checkpatch warnings
The below checkpatch error was fixed,
drivers/staging/cptm1217/cp_tm1217.h:5: ERROR: open brace '{' following struct go on the same line
--- drivers/staging/cptm1217/cp_tm1217.h | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
drivers/staging/cptm1217/cp_tm1217.h +1 -2
@@ -1,8 +1,7 @@#ifndef __LINUX_I2C_CP_TM1217_H#define __LINUX_I2C_CP_TM1217_H -struct cp_tm1217_platform_data -{ +struct cp_tm1217_platform_data {int gpio;/* If not set uses the IRQ resource 0 */ };
Signature · 1 line
1.7.5.4