Re: [PATCH -next] backlight: sky81452-backlight: convert comma to semicolon
From: Lee Jones
Date: Tue Dec 15 2020 - 03:06:11 EST
On Mon, 14 Dec 2020, Daniel Thompson wrote:
> On Mon, Dec 14, 2020 at 09:34:58PM +0800, Zheng Yongjun wrote:
> > Replace a comma between expression statements by a semicolon.
> >
> > Signed-off-by: Zheng Yongjun <zhengyongjun3@xxxxxxxxxx>
>
> Weird! I guess it was harmless but still seriously weird ;-)
One of these was found in MFD a couple of weeks ago.
Yours was exactly my train of thought!
One suggestion was to convert all semi-colons to commas and do away
with all the curly braces encapsulating if()s, for()s and while()s.
Who knew that was even possible?
> Reviewed-by: Daniel Thompson <daniel.thompson@xxxxxxxxxx>
>
> Thanks!
>
>
> > ---
> > drivers/video/backlight/sky81452-backlight.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/video/backlight/sky81452-backlight.c b/drivers/video/backlight/sky81452-backlight.c
> > index 8268ac43d54f..c95e0de7f4e7 100644
> > --- a/drivers/video/backlight/sky81452-backlight.c
> > +++ b/drivers/video/backlight/sky81452-backlight.c
> > @@ -291,7 +291,7 @@ static int sky81452_bl_probe(struct platform_device *pdev)
> > }
> >
> > memset(&props, 0, sizeof(props));
> > - props.max_brightness = SKY81452_MAX_BRIGHTNESS,
> > + props.max_brightness = SKY81452_MAX_BRIGHTNESS;
> > name = pdata->name ? pdata->name : SKY81452_DEFAULT_NAME;
> > bd = devm_backlight_device_register(dev, name, dev, regmap,
> > &sky81452_bl_ops, &props);
--
Lee Jones [李琼斯]
Senior Technical Lead - Developer Services
Linaro.org │ Open source software for Arm SoCs
Follow Linaro: Facebook | Twitter | Blog