Skip to contentSkip to conversation

Staging: fbtft: Fix Various Checkpatch issues

PATCH Superseded Bhanusree Pola 1 participant 3 messages Feb 25, 2019

Subsystems (2)

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

v3 cover Staging: fbtft: Fix Various Checkpatch issues

This series cleans the following checkpatch.pl issues:

CHECK: Extra blank line not required before closing brace '}' WARNING:line over 80 characters

v2:
[PATCH 1/2]: Commit log is made imperative
[PATCH 2/2]: Commit log is made imperative
v3:
[PATCH 2/2]: Commit log modified

Bhanusree Pola (2):
Staging: fbtft: Extra blank line not required before '}'
Staging: fbtft: Fix line over 80 characters

 drivers/staging/fbtft/fbtft-core.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
Signature · 1 line
2.17.1
#1 lore raw

PATCH v3 1/2 Staging: fbtft: Extra blank line not required before '}'

Remove unnecesessary extra blank line before the closing brace, to solve the checkpatch.pl check:
CHECK: Extra blank line not required before closing brace '}'

---
 drivers/staging/fbtft/fbtft-core.c | 1 -
 1 file changed, 1 deletion(-)
drivers/staging/fbtft/fbtft-core.c +0 -1
index de3f431abc15..9d78ce6e819f 100644
@@ -87,7 +87,6 @@ static int fbtft_request_one_gpio(struct fbtft_par *par,
 			dev_err(dev,
 				"Failed to request %s GPIO:%d\n", name, ret);
 			return ret;
-
 		}
 		fbtft_par_dbg(DEBUG_REQUEST_GPIOS, par, "%s: '%s' GPIO\n",
 			      __func__, name);
Signature · 1 line
2.17.1
#2 lore raw

PATCH v3 2/2 Staging: fbtft: Fix line over 80 characters

In reply to Bhanusree Pola

Fix the checkpatch.pl warning:
WARNING:line over 80 characters
Move Parameters to the next lines with proper alignment

---
 drivers/staging/fbtft/fbtft-core.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/fbtft/fbtft-core.c +3 -3
index 9d78ce6e819f..9b07badf4c6c 100644
@@ -436,9 +436,9 @@ static unsigned int chan_to_field(unsigned int chan, struct fb_bitfield *bf)
 	return chan << bf->offset;
 }
 
-static int fbtft_fb_setcolreg(unsigned int regno, unsigned int red, unsigned int green,
-			      unsigned int blue, unsigned int transp,
-			      struct fb_info *info)
+static int fbtft_fb_setcolreg(unsigned int regno, unsigned int red,
+			      unsigned int green, unsigned int blue,
+			      unsigned int transp, struct fb_info *info)
 {
 	unsigned int val;
 	int ret = 1;
Signature · 1 line
2.17.1