Staging: fbtft: Fix Various Checkpatch issues
Subsystems (2)
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
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
PATCH 1/2 Staging: fbtft: Extra blank line not required before '}'
Removes unnecesessary extra blank line before the closing brace '}' which solves the checkpatch.pl warning.
Signed-off-by Bhanusree Pola <[email protected]>
--- drivers/staging/fbtft/fbtft-core.c | 1 - 1 file changed, 1 deletion(-)
drivers/staging/fbtft/fbtft-core.c +0 -1
@@ -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
PATCH 2/2 Staging: fbtft: Fix line over 80 characters
In reply to Bhanusree PolaFixes the checkpatch.pl warning:
WARNING:line over 80 characters
Parameters moved to the next lines with proper alignment
Signed-off-by Bhanusree Pola <[email protected]>
--- drivers/staging/fbtft/fbtft-core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/fbtft/fbtft-core.c +3 -3
@@ -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