Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3181221pxu; Tue, 15 Dec 2020 00:10:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJzDsIlJVXIILLvxoA9gPQZ31ZIf2LcE0VFrdgy7tSMU19qvuwKrx8VtA2H7lE2dP/Lrz1fZ X-Received: by 2002:aa7:c558:: with SMTP id s24mr28895270edr.257.1608019851087; Tue, 15 Dec 2020 00:10:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608019851; cv=none; d=google.com; s=arc-20160816; b=Bihj7I/P62hbHkyspgw2px/eHlEkrdiJ5VjcUaiYQY/BjNEvUnEyyJJS16kzAhO4x7 gbafMgBrUIAFZHpsL6wh4+I4/QRSDzrNuQvO8np/EFbEVg2w82Wiws/w3y6ZlRZiImyc XAbasnJ3+g+FiqML/fzfWRac0lL3MM+3T4BrnPXhmxTi4cqMpUKcc6Ob1AX7TxvtQLph y8C9yxkEZshOq4NzAnSVHT9Sxr3CB0w/ZIHABiAMf19Z89uzisBsK+bLBEtI8dyVK/O7 xvAaYAHIEm1sXArVf6fPxDIXXIGNa2biejRUT97W6/iuazpLDniWzqJOwvXVFqBAFIW/ P4mA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=MbW/aNPnMI3Tt8o0eStb7kmZYcIkeHTT/zhJDBmp9Po=; b=WOSb+9fLMij2Yeq5VgvqYdCj4ygjbMMjsxbA4J5kaa7/avTn2NEpITNI1TafzRtoCo rQNuBgyzgHn57YNDE9ndNrfl+x7OD0sPNvS3sbPVh/cEvT5vZq59lJ+U8pw0AllcwIpM p+dz6/M3hrgijuDBUHEqVhcdhOz01b18uvqWh1xR5CTXS5EUYg4AAbWcQajfp0IqP7Zn EoGhZ0j6mpRAI48r9ajOoCb/eyivLlnuaRcyzIHiF8JYuyoBfqE5UYR33gIX44UyjMcw WChJrAQVlh6P4xk/xgfGR3XB8lGhYjCc32CE11FvNgL+GAvCSlhoUFfVG7qWxq2p4UdQ tXxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ERAzFdv3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r3si468232edy.595.2020.12.15.00.10.07; Tue, 15 Dec 2020 00:10:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ERAzFdv3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726661AbgLOIF4 (ORCPT + 99 others); Tue, 15 Dec 2020 03:05:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726636AbgLOIFh (ORCPT ); Tue, 15 Dec 2020 03:05:37 -0500 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6AF36C0617A6 for ; Tue, 15 Dec 2020 00:04:48 -0800 (PST) Received: by mail-wr1-x444.google.com with SMTP id m5so18850375wrx.9 for ; Tue, 15 Dec 2020 00:04:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=MbW/aNPnMI3Tt8o0eStb7kmZYcIkeHTT/zhJDBmp9Po=; b=ERAzFdv3OQLUww5ou7XtAG/8q6kqp/p8+AfwT2MaTB2yzEEM0sYuWSkXTVOI6wIxla Z1Yjv2l6iA3MYW0nu0cUyrHGFWKb99pxy9srXvvZ1M3iX2xkYT7r3sNnHhxiC1weYjA9 wvYgYaIqA7mu88/BRCrDTSyeJKNL466afdLNdIx6FR4CN6bQfTer0bIJXg9T8+y52EbB DSRqiVD0IzrCDqB7hzHC/THJaYeVIDSdjXuwXskAdvI3eXrBjrOaZ6Yl+Lur19glBDkl GACBOOLJ/OX4ZJ3NUBwYU90XTveFA8aiPEvlfURB3O83mTnSqhsRlUK7C+8LJOwyrlPc G0eA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=MbW/aNPnMI3Tt8o0eStb7kmZYcIkeHTT/zhJDBmp9Po=; b=WNDKCcPJNEjnGsfTIGmClam97cNFNavfG21krlu6fnmRu1vhFjBYHtnuEFz7YvPQkF q6J1b/pkzSnd3opGc+JclOA3a3wV2XGQ1MZqyqs7rDVSyrzkDP7Jbg/m/Wa4abWR+vfo g0UuMTCc19V2bAtxWQCVt9CPB5FGK2fYMXHQJ0SaHmtBAJa7eAJ9NhkGCshCtT2D2sCC dnejCzsyl4iqESq1rR/C1gMzlb69XpEh52H83oKT2EG9lgVc+3tLdkoZnv1MBXG3/Jk4 NUvz46VprYzk6qvkZa2wG1VjfXmzY3qJlBEYxoVM8IQayShpZc2omon4AHsCTfjf26U2 ksvQ== X-Gm-Message-State: AOAM5305KWZN8G58l3ilREmfPDKk19xdtRmyQTqbPB7KczDQdaCGmwUO BtyUy2dVOeovcffk69l3QwT9Uw== X-Received: by 2002:adf:fd41:: with SMTP id h1mr32200972wrs.284.1608019487058; Tue, 15 Dec 2020 00:04:47 -0800 (PST) Received: from dell ([91.110.221.168]) by smtp.gmail.com with ESMTPSA id n12sm38986631wrg.76.2020.12.15.00.04.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Dec 2020 00:04:46 -0800 (PST) Date: Tue, 15 Dec 2020 08:04:44 +0000 From: Lee Jones To: Daniel Thompson Cc: Zheng Yongjun , jingoohan1@gmail.com, b.zolnierkie@samsung.com, dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH -next] backlight: sky81452-backlight: convert comma to semicolon Message-ID: <20201215080444.GK5029@dell> References: <20201214133458.3729-1-zhengyongjun3@huawei.com> <20201214143632.oiqmvpkai7kurc2d@holly.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20201214143632.oiqmvpkai7kurc2d@holly.lan> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > > 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 > > 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