[PATCH] Coding style fix - quoted string split across lines

Frans Klaver fransklaver at gmail.com
Thu Jul 13 21:04:11 UTC 2017


On Thu, Jul 13, 2017 at 5:50 PM, PY <pyldev at gmail.com> wrote:
> From: Pavlenko Yurii <pyldev at gmail.com>
>
> ---
>  drivers/staging/fbtft/fbtft_device.c | 16 ++++++++--------
>  1 file changed, 8 insertions(+), 8 deletions(-)
>
> diff --git a/drivers/staging/fbtft/fbtft_device.c b/drivers/staging/fbtft/fbtft_device.c
> index 0d97473..c2d5dbb 100644
> --- a/drivers/staging/fbtft/fbtft_device.c
> +++ b/drivers/staging/fbtft/fbtft_device.c
> @@ -898,14 +898,14 @@ static void adafruit18_green_tab_set_addr_win(struct fbtft_par *par,
>                                         { "dc", 25 },
>                                         {},
>                                 },
> -                               .gamma =        "0 2 2 2 2 2 2 2 "
> -                                               "2 2 2 2 2 2 2 2 "
> -                                               "2 2 2 2 2 2 2 2 "
> -                                               "2 2 2 2 2 2 2 3 "
> -                                               "3 3 3 3 3 3 3 3 "
> -                                               "3 3 3 3 3 3 3 3 "
> -                                               "3 3 3 4 4 4 4 4 "
> -                                               "4 4 4 4 4 4 4"
> +                               .gamma = "0 2 2 2 2 2 2 2 " /
> +                                                "2 2 2 2 2 2 2 2 " /
> +                                                "2 2 2 2 2 2 2 2 " /
> +                                                "2 2 2 2 2 2 2 3 " /
> +                                                "3 3 3 3 3 3 3 3 " /
> +                                                "3 3 3 3 3 3 3 3 " /
> +                                                "3 3 3 4 4 4 4 4 " /
> +                                                "4 4 4 4 4 4 4"

Are you trying to escape newlines with forward slashes? This might
have some unexpected results :(.

The checkpatch warning is for lines that are going to end up visible
to the user (to enable easy grepping).


More information about the devel mailing list