Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7047144ybi; Thu, 13 Jun 2019 08:41:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqyr4Dw70purH82plSM2rOUk62SkTfyELUvMkL2dEK47rrFzDoojNiQbdSla24qzKC7PPqPf X-Received: by 2002:a63:f95d:: with SMTP id q29mr25099418pgk.368.1560440463730; Thu, 13 Jun 2019 08:41:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560440463; cv=none; d=google.com; s=arc-20160816; b=wUOT+GL1xhSAHt6G4/N8HaupRI3kKF5jz7DJPJ5c7qfNbDFvnFB57vqgzXmkOX2EQu zq/BzB3SS6aebyWi5zcelZN3GxnyVEKE7oJRcEIzApWlRL+pUZpSrHwS5iz/SqrrrUVh D/OdD8I1sjmvDl+5f1u9WVFL4VgPwdgwQoD7+MMOiii4v9fNTgJC7sulg4LOJX7TSMP1 ICF26coTPE9v2TNOzsQjo8vtHpiy003+WZSxrrDlrJNgBhfdQikRQnCw5JosLGeLiFbH o9KMx9p921naq3js8iBJx7hCWCy6YGn65C0YhZVKvTNnIhkeSzkJo5K1nA+Duu5EslSN Oztw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organisation:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=2IGYe3MzeqoKqhU+48Yia6mR1pE+2p63j9Lcce2M7Fw=; b=gzNjCRtURvg3j9ruQVhgsp3JODGaWmRYo5WJxGTLyU+CPI+VNGuNbbYwuIQ2V3M2ax dfttOnvGgwFZBqYB3ISISw9eF7FWNDRyu5xpau4go2enwS8m3YxvtdBaEOyv/eVOrTKv UU9YMuOWTG+R0rMYjEYAKAOQPorBH+7pzTPwz6ctOYd/RICrXeWT7POAbtmF9aqfH7De /KeQEAOKb2ZvdlKcbLm/pPqYRMh3AJmWkZv6h6KLIrBr1Fy7at2n5P8IsANTEKJQcTsb bpFm8x1Zi563ISaWde/VdaMYaKpXSjrt0HSJ0BuJytYQT81Z5LweVaRn/yAV+BotUdLQ cK3Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g8si104228pgd.64.2019.06.13.08.40.48; Thu, 13 Jun 2019 08:41:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388677AbfFMPkH (ORCPT + 99 others); Thu, 13 Jun 2019 11:40:07 -0400 Received: from kirsty.vergenet.net ([202.4.237.240]:40864 "EHLO kirsty.vergenet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731906AbfFMJyD (ORCPT ); Thu, 13 Jun 2019 05:54:03 -0400 Received: from reginn.horms.nl (watermunt.horms.nl [80.127.179.77]) by kirsty.vergenet.net (Postfix) with ESMTPA id BFC5C25BE33; Thu, 13 Jun 2019 19:54:00 +1000 (AEST) Received: by reginn.horms.nl (Postfix, from userid 7100) id C4DE4940483; Thu, 13 Jun 2019 11:53:58 +0200 (CEST) Date: Thu, 13 Jun 2019 11:53:58 +0200 From: Simon Horman To: Wolfram Sang Cc: linux-i2c@vger.kernel.org, Mauro Carvalho Chehab , Greg Kroah-Hartman , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , linux-media@vger.kernel.org, devel@driverdev.osuosl.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 31/34] staging: media: soc_camera: imx074: simplify getting the adapter of a client Message-ID: <20190613095358.sut73nanjsusjw4o@verge.net.au> References: <20190608105619.593-1-wsa+renesas@sang-engineering.com> <20190608105619.593-32-wsa+renesas@sang-engineering.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190608105619.593-32-wsa+renesas@sang-engineering.com> Organisation: Horms Solutions BV User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jun 08, 2019 at 12:56:10PM +0200, Wolfram Sang wrote: > We have a dedicated pointer for that, so use it. Much easier to read and > less computation involved. > > Signed-off-by: Wolfram Sang Reviewed-by: Simon Horman > --- > > Please apply to your subsystem tree. > > drivers/staging/media/soc_camera/imx074.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/media/soc_camera/imx074.c b/drivers/staging/media/soc_camera/imx074.c > index d907aa62f898..14240b74cdd0 100644 > --- a/drivers/staging/media/soc_camera/imx074.c > +++ b/drivers/staging/media/soc_camera/imx074.c > @@ -409,7 +409,7 @@ static int imx074_probe(struct i2c_client *client, > const struct i2c_device_id *did) > { > struct imx074 *priv; > - struct i2c_adapter *adapter = to_i2c_adapter(client->dev.parent); > + struct i2c_adapter *adapter = client->adapter; > struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); > int ret; > > -- > 2.19.1 >