From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0B840C636D4 for ; Wed, 8 Feb 2023 15:27:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231566AbjBHP1m (ORCPT ); Wed, 8 Feb 2023 10:27:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229895AbjBHP1h (ORCPT ); Wed, 8 Feb 2023 10:27:37 -0500 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A77C301AD; Wed, 8 Feb 2023 07:27:36 -0800 (PST) Received: from pendragon.ideasonboard.com (213-243-189-158.bb.dnainternet.fi [213.243.189.158]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id D5660E79; Wed, 8 Feb 2023 16:27:34 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1675870055; bh=v2kB8dThcKfo0PAIArXh+N1F/eUzy2P5U/bncrQmbsE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=R7awEdcAld66PPze9JPXGjcVTmnb/GpMRs1PpsZkPs9hanKBY640Wx12a6BgNtEM4 T73mh/Cuepm9EgZLhnpfB4NXAjeF5Gev1afA+YiG8Ls4bgRB/pOb8aPyt49hzWnVf2 q5ZKOhfa2Kg0hRVDKYpdl4WCY4y75/A9BNFRRbWI= Date: Wed, 8 Feb 2023 17:27:33 +0200 From: Laurent Pinchart To: Andy Shevchenko Cc: Sakari Ailus , Alexander Stein , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Manivannan Sadhasivam , Mauro Carvalho Chehab Subject: Re: [PATCH v1 1/1] media: i2c: imx290: Use device_property_read_u32() directly Message-ID: References: <20230208113348.16880-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230208113348.16880-1-andriy.shevchenko@linux.intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andy, Thank you for the patch. On Wed, Feb 08, 2023 at 01:33:48PM +0200, Andy Shevchenko wrote: > No need to call fwnode_property_read_u32(dev_fwnode()), when > we have already existing helper. So use it. > > Signed-off-by: Andy Shevchenko > --- > drivers/media/i2c/imx290.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/media/i2c/imx290.c b/drivers/media/i2c/imx290.c > index 330098a0772d..e7aa2ecdcc88 100644 > --- a/drivers/media/i2c/imx290.c > +++ b/drivers/media/i2c/imx290.c > @@ -1137,8 +1137,7 @@ static int imx290_init_clk(struct imx290 *imx290) > u32 xclk_freq; > int ret; > > - ret = fwnode_property_read_u32(dev_fwnode(imx290->dev), > - "clock-frequency", &xclk_freq); > + ret = device_property_read_u32(imx290->dev, "clock-frequency", &xclk_freq); I'd break the line here. Reviewed-by: Laurent Pinchart > if (ret) { > dev_err(imx290->dev, "Could not get xclk frequency\n"); > return ret; -- Regards, Laurent Pinchart