Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp368814iog; Wed, 29 Jun 2022 01:44:56 -0700 (PDT) X-Google-Smtp-Source: AGRyM1snqmOtirEqWU1qt8V81TOM75bya4wVyOmQFWW1nqmCdnDaS05oaCQGAl1/xCINANYk7YMb X-Received: by 2002:a17:907:7216:b0:726:d5d5:917e with SMTP id dr22-20020a170907721600b00726d5d5917emr2105235ejc.768.1656492296145; Wed, 29 Jun 2022 01:44:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656492296; cv=none; d=google.com; s=arc-20160816; b=NGvv6z4EWCtHw78R2XBJ2lTr9UEQO6gZfTtjFFSFNFaPAQ/owribnEaDIoPcmSqGS9 Bcepb5T92nG+/fIiaWV2IQUqfyjV619l1d3dYErHz2Ve6JBelmO951JbEH976G3klUq/ mG0CqlJpFq5ilAKVEhgVDQU8hwId/Au5HW4MxUtXbdb3M7DQg0+ea70a/UTRDP7xrwvI bg8hBL7buzDd94nNJYufsWTYURgeDY/GNK9aez6mBSIAycCVL+198rqbXa/IpLe/HyJu qZZPDU3p+wSM8Rp6BDa+cZckllTSJvGLJe6sgilIfuDFzZquDRIwejdAX2B3MRMfb0he ZZiw== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=ZoOTKpKokHS4NPaSElVemIvDHmLLCMM8d5AlVmoHONU=; b=WyKMe2ZfUeCAf4y/imSWFXBXmAd9c0Th+Bkw1UPV5ZryfiZJdMv6SSKdb0rv/9dqzd SWRQFR84ePf2wFaB9SMFo4QHslDgH3DEHdmygUUuGxmwHZ9QWkmGmpCAM1397Ub40/EX 8ve8pzhfxJwiNZFkY5IbIcScRnUEK3HfQrEg4vTj2zw+39FxBCeSS6h9tTkdpvLVnkql JkUzaKZS6c6sBKeU/YbmzaoITdtd84SUlt3tbb3Hl3IHvfQYeJuokY+/KgW5NNkMvH1q FsyFTFO+0tQgUZM11qvyb/8jC6g1Vk9auDWtjdJeqiHlMiB0c5htqUsBKio38a2L4R/7 Y94g== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z12-20020a05640240cc00b0042ddd05d4ebsi1026030edb.610.2022.06.29.01.44.30; Wed, 29 Jun 2022 01:44:56 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232474AbiF2IEv (ORCPT + 99 others); Wed, 29 Jun 2022 04:04:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232465AbiF2IEn (ORCPT ); Wed, 29 Jun 2022 04:04:43 -0400 Received: from relay11.mail.gandi.net (relay11.mail.gandi.net [217.70.178.231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 503E23B554; Wed, 29 Jun 2022 01:04:40 -0700 (PDT) Received: (Authenticated sender: jacopo@jmondi.org) by mail.gandi.net (Postfix) with ESMTPSA id C922710000F; Wed, 29 Jun 2022 08:04:36 +0000 (UTC) Date: Wed, 29 Jun 2022 10:04:34 +0200 From: Jacopo Mondi To: Tommaso Merciai Cc: linuxfancy@googlegroups.com, linux-amarula@amarulasolutions.com, quentin.schulz@theobroma-systems.com, Daniel Scally , Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 5/7] media: ov5693: rename ov5693_check_hwcfg into ov5693_get_hwcfg Message-ID: <20220629080434.aqihub7ridzg3st3@uno.localdomain> References: <20220627150453.220292-1-tommaso.merciai@amarulasolutions.com> <20220627150453.220292-6-tommaso.merciai@amarulasolutions.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220627150453.220292-6-tommaso.merciai@amarulasolutions.com> X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 27, 2022 at 05:04:51PM +0200, Tommaso Merciai wrote: > Function ov5693_check_hwcfg don't only check the hw configuration but s/don't/doesn't/ ? > also get the hw configuration. Is better better to rename this into ov5693_get_hwcfg The concept of "getting" the hw configuration vs "checking" it is debatable. The function does many other things as far as I can tell. However, this is also a little arbitrary but I guess it doesn't hurt ? Reviewed-by: Jacopo Mondi Thanks j > > Signed-off-by: Tommaso Merciai > --- > drivers/media/i2c/ov5693.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/media/i2c/ov5693.c b/drivers/media/i2c/ov5693.c > index d5a934ace597..273caef467fe 100644 > --- a/drivers/media/i2c/ov5693.c > +++ b/drivers/media/i2c/ov5693.c > @@ -1339,7 +1339,7 @@ static int ov5693_get_regulators(struct ov5693_device *ov5693) > ov5693->supplies); > } > > -static int ov5693_check_hwcfg(struct ov5693_device *ov5693) > +static int ov5693_get_hwcfg(struct ov5693_device *ov5693) > { > struct fwnode_handle *fwnode = dev_fwnode(ov5693->dev); > struct v4l2_fwnode_endpoint bus_cfg = { > @@ -1431,7 +1431,7 @@ static int ov5693_probe(struct i2c_client *client) > ov5693->client = client; > ov5693->dev = &client->dev; > > - ret = ov5693_check_hwcfg(ov5693); > + ret = ov5693_get_hwcfg(ov5693); > if (ret) > return ret; > > -- > 2.25.1 >