Message ID | 20221025001239.16345-1-lima.gabriel.luz@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp737575wru; Mon, 24 Oct 2022 18:09:46 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7B2huTamwxcAcvKwpJxgqsI4FDq0sgW/fP6Jz4iS6HjdDa2BU+Hbl14XMAfQi+trVf714h X-Received: by 2002:a05:6402:3890:b0:45c:2b5:b622 with SMTP id fd16-20020a056402389000b0045c02b5b622mr33783780edb.69.1666660186096; Mon, 24 Oct 2022 18:09:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666660186; cv=none; d=google.com; s=arc-20160816; b=LwKVF4yQvzdkyylK+aCVuoOrFwNh75XK/ZWsuEbyiqpPJq/sx0u7xGpeSAbkdt7NAd FP2xQpIYTzvZ8tBmgEV7nYgWMXZUUZOVqAz8JrPW5ZVNcDl4O3KmZcDVosUiWK/I3xQk OlJDCf+vmO5i3LnL+zxg6NB3EJCrQRGKLk8qayFyD1FUn0Y/zy3huzA3CRXcffWERoMS +xtJfbaI10wdEwltdgzlR1awyBTR+Rsjjxcv9AW+DhN4t1fmMbmBJxKXzIyNDMsm7NKj zNgcvHO+s6mdRMyJ+RrjSst+lJZiADWhkGVXxshxm0Oq2wNFd719A1tHq6RM24fw9m1p oylg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=IGPioqrvo9StUbHADKkHl19MNXlGRLsr8yyQyLq+9dw=; b=FWIeD5vSSFHCOMSav6Lbk6/4Q8KOYp+qWYKVlU39icIVOp6AarmdHwI+8DdxHPf2Q6 9Dj1qvk+uqaQX99OrByEbI1zZPlXWBfcFj5yMrWOwln81eX7XVQaw+zeBBgMBkcrggcR TvG8l0lJO7Vn4lEDk4TwgTlh2rWqDUxkPMiIkP8xXYU+CklyVPPpnjYWVQgU9CUQFQxh VDBoBw8DDbm3loyBOSLgkYfKBw56WQ7bXi3iNHi7mWObe9HlKpAOok9f2ECbYfbvL4E0 7l3VjOZlgm+ZCuz0mIW6/YB8aM4KwPxT9sZSfLM9j0C+1j6UMHPSxYXpXlSIK+m/+/5f BDXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=fw426MFV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b13-20020a056402084d00b004462de364fesi688450edz.597.2022.10.24.18.09.22; Mon, 24 Oct 2022 18:09:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=fw426MFV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231136AbiJYBHI (ORCPT <rfc822;pwkd43@gmail.com> + 99 others); Mon, 24 Oct 2022 21:07:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230471AbiJYBGZ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 24 Oct 2022 21:06:25 -0400 Received: from mail-oa1-x2e.google.com (mail-oa1-x2e.google.com [IPv6:2001:4860:4864:20::2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EEF354A10C; Mon, 24 Oct 2022 17:13:22 -0700 (PDT) Received: by mail-oa1-x2e.google.com with SMTP id 586e51a60fabf-12c8312131fso13797337fac.4; Mon, 24 Oct 2022 17:13:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=IGPioqrvo9StUbHADKkHl19MNXlGRLsr8yyQyLq+9dw=; b=fw426MFVi8E8FV5waIk4Oob4n7Z60FaIvxuxFizMZl0Bqjgu6QzlV08gF9kneZoYMm aM3Nw2cEIDRftpvXafrojAp2ttB3ExekuZm6uEu/dkvjs/r5sEka0OeTmTHUR/G6vTZh Ubcx2hEBP00PzwyTFlvbwPhRoV0WRxQkwcoknaqUDOHz2afOVF08TOaj8NF9pw4yvQbC f4gge7qgH7clv0bv5m2IsWrdz0TYehwQr6r4CcSzgrcCL62nIXmmJwAlAvUAotzyPk/Q nFhEU4//YOMAU+BxrcC/UKKbpafDL7QclxfAopSt+u4dxWj4PAAIZUTtPj4v+pjgS355 k5QA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=IGPioqrvo9StUbHADKkHl19MNXlGRLsr8yyQyLq+9dw=; b=Pc8M8c0lEjqy3ruDFuGTLaC7ayd0VP/IhLucLsSuFV955PTrx7reaa1M6rwpEM19k0 JAYattwbK9ZOB1qs3RLP9/Lx9pOn83BJzg8EysyN+KY1i38Vr6i4fX8tkDzZCO7YH7XH Iwj5vSDm9j2OBrEdTwRw9exds/wgbFCYLfVRuupgMnEk9uUf9ktJOWDbm3uMcesm1Fer f/NlL287NHBtBsZ/rBaU6Cx5diDCsSm+KcuR6jKux/FRCB0WOA73g8PrfMJ/8Gliht/q D9CEkB2kmqtxDlrcIa6HBKulgquFuZ7J39WnrPP19piongaCVzzCW+fwr7ynDo3ye3Cl CQ0w== X-Gm-Message-State: ACrzQf0bceRsxydes4iyepHyzO4wRCqFiwhPvnRDAfL4nxKUYbZJEadP sY5eFtPg65Q2irqKqGm0ZMU= X-Received: by 2002:a05:6870:4284:b0:13b:91b7:89a8 with SMTP id y4-20020a056870428400b0013b91b789a8mr5715289oah.284.1666656801702; Mon, 24 Oct 2022 17:13:21 -0700 (PDT) Received: from gabriel-Nitro-AN515-54.. (201-27-204-68.dsl.telesp.net.br. [201.27.204.68]) by smtp.gmail.com with ESMTPSA id k41-20020a05687095a900b00131c3d4d38fsm757823oao.39.2022.10.24.17.13.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Oct 2022 17:13:20 -0700 (PDT) From: Gabriel Lima Luz <lima.gabriel.luz@gmail.com> To: Rui Miguel Silva <rmfrfs@gmail.com>, Laurent Pinchart <laurent.pinchart@ideasonboard.com>, Steve Longerbeam <slongerbeam@gmail.com>, Philipp Zabel <p.zabel@pengutronix.de>, Mauro Carvalho Chehab <mchehab@kernel.org>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Shawn Guo <shawnguo@kernel.org>, Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix Kernel Team <kernel@pengutronix.de>, Fabio Estevam <festevam@gmail.com>, NXP Linux Team <linux-imx@nxp.com>, linux-media@vger.kernel.org, linux-staging@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, outreachy@lists.linux.dev Cc: Gabriel Lima Luz <lima.gabriel.luz@gmail.com> Subject: [PATCH v2] staging: media: imx: imx7-media-csi: Fix parenthesis alignment Date: Mon, 24 Oct 2022 21:12:39 -0300 Message-Id: <20221025001239.16345-1-lima.gabriel.luz@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747619871130052811?= X-GMAIL-MSGID: =?utf-8?q?1747619871130052811?= |
Series |
[v2] staging: media: imx: imx7-media-csi: Fix parenthesis alignment
|
|
Commit Message
Gabriel Lima Luz
Oct. 25, 2022, 12:12 a.m. UTC
Adhere to Linux kernel coding style.
Reported by checkpatch:
CHECK: Alignment should match open parenthesis
Signed-off-by: Gabriel Lima Luz <lima.gabriel.luz@gmail.com>
---
Altered changes acording to feedback for a more readable code
drivers/staging/media/imx/imx7-media-csi.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Comments
On Mon, 24 Oct 2022, Gabriel Lima Luz wrote: > Adhere to Linux kernel coding style. > > Reported by checkpatch: > > CHECK: Alignment should match open parenthesis Here you have made a decision that is quite reasonable, but that does not actually "Fix parenthesis alignment". This highlights an overall problem with your log message. You say what you are "fixing", but you don't give any explanation about why you have done what you have done. Actually the most helpful comment was below the ---, but that will disappear when the patch is applied. julia > > Signed-off-by: Gabriel Lima Luz <lima.gabriel.luz@gmail.com> > --- > Altered changes acording to feedback for a more readable code > > drivers/staging/media/imx/imx7-media-csi.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/staging/media/imx/imx7-media-csi.c b/drivers/staging/media/imx/imx7-media-csi.c > index cbc66ef0eda8..b241b68f456c 100644 > --- a/drivers/staging/media/imx/imx7-media-csi.c > +++ b/drivers/staging/media/imx/imx7-media-csi.c > @@ -1704,7 +1704,8 @@ static int imx7_csi_init_cfg(struct v4l2_subdev *sd, > mf->xfer_func = V4L2_MAP_XFER_FUNC_DEFAULT(mf->colorspace); > mf->ycbcr_enc = V4L2_MAP_YCBCR_ENC_DEFAULT(mf->colorspace); > mf->quantization = V4L2_MAP_QUANTIZATION_DEFAULT(!cc->yuv, > - mf->colorspace, mf->ycbcr_enc); > + mf->colorspace, > + mf->ycbcr_enc); > > csi->cc[i] = cc; > } > -- > 2.34.1 > > >
diff --git a/drivers/staging/media/imx/imx7-media-csi.c b/drivers/staging/media/imx/imx7-media-csi.c index cbc66ef0eda8..b241b68f456c 100644 --- a/drivers/staging/media/imx/imx7-media-csi.c +++ b/drivers/staging/media/imx/imx7-media-csi.c @@ -1704,7 +1704,8 @@ static int imx7_csi_init_cfg(struct v4l2_subdev *sd, mf->xfer_func = V4L2_MAP_XFER_FUNC_DEFAULT(mf->colorspace); mf->ycbcr_enc = V4L2_MAP_YCBCR_ENC_DEFAULT(mf->colorspace); mf->quantization = V4L2_MAP_QUANTIZATION_DEFAULT(!cc->yuv, - mf->colorspace, mf->ycbcr_enc); + mf->colorspace, + mf->ycbcr_enc); csi->cc[i] = cc; }