Staging: fbtft: remove unnecessary line continuations
Subsystems (2)
PATCH 1/1 Staging: fbtft: remove unnecessary line continuations
This fixes the checkpatch.pl warning:
WARNING: Avoid unnecessary line continuations
--- drivers/staging/fbtft/fbtft_device.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-)
drivers/staging/fbtft/fbtft_device.c +9 -9
@@ -206,7 +206,7 @@ static struct fbtft_device_display displays[] = { .display = { .buswidth = 8, .backlight = 1, - .fbtftops.set_addr_win = \ + .fbtftops.set_addr_win = adafruit18_green_tab_set_addr_win, }, .bgr = true,
@@ -852,7 +852,7 @@ static struct fbtft_device_display displays[] = { .buswidth = 16, .txbuflen = -2, /* disable buffer */ .backlight = 1, - .fbtftops.write = \ + .fbtftops.write = fbtft_write_gpio16_wr_latched, }, .bgr = true,
@@ -1247,7 +1247,7 @@ static int __init fbtft_device_init(void) }if (init_num >FBTFT_MAX_INIT_SEQUENCE ) { -pr_err (DRVNAME \ +pr_err (DRVNAME ": init parameter: exceeded max array size: %d\n" ,FBTFT_MAX_INIT_SEQUENCE );return -EINVAL ;
@@ -1256,7 +1256,7 @@ static int __init fbtft_device_init(void)/* parse module parameter: gpios */ while ((p_gpio =strsep (&gpios,"," ))) {if (strchr (p_gpio,':' ) ==NULL ) { -pr_err (DRVNAME \ +pr_err (DRVNAME ": error: missing ':' in gpios parameter: %s\n" , p_gpio);return -EINVAL ;
@@ -1264,14 +1264,14 @@ static int __init fbtft_device_init(void) p_num = p_gpio; p_name =strsep (&p_num,":" );if (p_name ==NULL || p_num ==NULL ) { -pr_err (DRVNAME \ +pr_err (DRVNAME ": something bad happened parsing gpios parameter: %s\n" , p_gpio);return -EINVAL ; } ret =kstrtol (p_num,10 , &val);if (ret) { -pr_err (DRVNAME \ +pr_err (DRVNAME ": could not parse number in gpios parameter: %s:%s\n" , p_name, p_num);return -EINVAL ;
@@ -1279,7 +1279,7 @@ static int __init fbtft_device_init(void)strcpy (fbtft_device_param_gpios[i].name, p_name); fbtft_device_param_gpios[i++].gpio = (int ) val;if (i ==MAX_GPIOS ) { -pr_err (DRVNAME \ +pr_err (DRVNAME ": gpios parameter: exceeded max array size: %d\n" ,MAX_GPIOS );return -EINVAL ;
@@ -1375,7 +1375,7 @@ static int __init fbtft_device_init(void)if (displays[i].spi) { ret =fbtft_device_spi_device_register (spi);if (ret) { -pr_err (DRVNAME \ +pr_err (DRVNAME ": failed to register SPI device\n" );return ret; }
@@ -1384,7 +1384,7 @@ static int __init fbtft_device_init(void) }else { ret =platform_device_register (p_device);if (ret <0 ) { -pr_err (DRVNAME \ +pr_err (DRVNAME ": platform_device_register() returned %d\n" , ret);return ret;
Signature · 1 line
1.8.3.2
This has the same subject line as your previous patch. If you end up in that situation, you have to either make the subject lines distinct in some way, or you have to put all of the files in a single patch. The latter would probably be fine in this case.
julia
Quoted 102 lines · Yeliz Taneroglu
This fixes the checkpatch.pl warning:
WARNING: Avoid unnecessary line continuationsSigned-off-by Yeliz Taneroglu <[email protected]>--- drivers/staging/fbtft/fbtft_device.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-)drivers/staging/fbtft/fbtft_device.c +9
-10@@ -206,7 +206,7 @@ static struct fbtft_device_display displays[] = { .display = { .buswidth = 8, .backlight = 1, - .fbtftops.set_addr_win = \ + .fbtftops.set_addr_win = adafruit18_green_tab_set_addr_win, }, .bgr = true,@@ -852,7 +852,7 @@ static struct fbtft_device_display displays[] = { .buswidth = 16, .txbuflen = -2, /* disable buffer */ .backlight = 1, - .fbtftops.write = \ + .fbtftops.write = fbtft_write_gpio16_wr_latched, }, .bgr = true,@@ -1247,7 +1247,7 @@ static int __init fbtft_device_init(void) }if (init_num >FBTFT_MAX_INIT_SEQUENCE ) { -pr_err (DRVNAME \ +pr_err (DRVNAME ": init parameter: exceeded max array size: %d\n" ,FBTFT_MAX_INIT_SEQUENCE );return -EINVAL ;@@ -1256,7 +1256,7 @@ static int __init fbtft_device_init(void)/* parse module parameter: gpios */ while ((p_gpio =strsep (&gpios,"," ))) {if (strchr (p_gpio,':' ) ==NULL ) { -pr_err (DRVNAME \ +pr_err (DRVNAME ": error: missing ':' in gpios parameter: %s\n" , p_gpio);return -EINVAL ;@@ -1264,14 +1264,14 @@ static int __init fbtft_device_init(void) p_num = p_gpio; p_name =strsep (&p_num,":" );if (p_name ==NULL || p_num ==NULL ) { -pr_err (DRVNAME \ +pr_err (DRVNAME ": something bad happened parsing gpios parameter: %s\n" , p_gpio);return -EINVAL ; } ret =kstrtol (p_num,10 , &val);if (ret) { -pr_err (DRVNAME \ +pr_err (DRVNAME ": could not parse number in gpios parameter: %s:%s\n" , p_name, p_num);return -EINVAL ;@@ -1279,7 +1279,7 @@ static int __init fbtft_device_init(void)strcpy (fbtft_device_param_gpios[i].name, p_name); fbtft_device_param_gpios[i++].gpio = (int ) val;if (i ==MAX_GPIOS ) { -pr_err (DRVNAME \ +pr_err (DRVNAME ": gpios parameter: exceeded max array size: %d\n" ,MAX_GPIOS );return -EINVAL ;@@ -1375,7 +1375,7 @@ static int __init fbtft_device_init(void)if (displays[i].spi) { ret =fbtft_device_spi_device_register (spi);if (ret) { -pr_err (DRVNAME \ +pr_err (DRVNAME ": failed to register SPI device\n" );return ret; }@@ -1384,7 +1384,7 @@ static int __init fbtft_device_init(void) }else { ret =platform_device_register (p_device);if (ret <0 ) { -pr_err (DRVNAME \ +pr_err (DRVNAME ": platform_device_register() returned %d\n" , ret);return ret; --1.8.3.2
--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/1425308314-5753-1-git-send-email-yeliztaneroglu%40gmail.com.
For more options, visit https://groups.google.com/d/optout.