Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7047863ybi; Thu, 13 Jun 2019 08:41:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqwP+FCyClL08P0HVVcSQbA1qCxAb06OFtidgtmdZ+lvrbdqnuerST+txbWBFH/5/MK3rkz+ X-Received: by 2002:a63:27c7:: with SMTP id n190mr31247848pgn.250.1560440508137; Thu, 13 Jun 2019 08:41:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560440508; cv=none; d=google.com; s=arc-20160816; b=Y1weAtjvDEtdp6BSPU5nO2Dxlk7W/nvEbdqdcFED4K07dloKT7oF3cgNF6l5xdGESN +1MG6FOhsGd0Pb3qdqbQTg1T8sK9t/KxBKpwlU/sMl1kn/ZsuakPN5O778lVjkuWLc53 Av66YK6J55wMIjsGjDPA4yQGShlPHZygfomHXAnND2nI76tGll8Lsci5vFD5BGIk6oyZ DQjQ9poxlG8rNmRa6UtBNrss+cxzP/JygR9klEWWUOcjLDemLuqGkNsE3qUSd9ynYEzz y9z7jk2oAHesBb8UX5Cg0kVNunX5wKsTtbrHq5i5QgjdUDo6yBfqYaC4BjIhoo8OEP6X RMdQ== 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=LyOXy+yzmWMNP278L7itDFRhiUEtc2aoRftrgvnkZ/U=; b=UqC9jfYeYCM+GiImJOfIYJ23BC1EgNELpd4YSQtrPyoZI6c2uP13obXadUY+qHO3oO yn5J1czlAbXgy7xQ/1+03YzszN0vnbkxgMI8Oy4nY8789xOfxwcg9+ESnxYMndshH5FU nyMCZsw/vg8q+3cZWmTQYpWkyPnyWXYEh49bzQdWSy1syeSzhgeY+pHOCsbooseAoQgQ UWZEm9r5Bk0Dp+saYgIJrL143PKdlUAuFYpuYUjx3/n6PHh9z89cc6izwplgcJMKIGYD earAJKbFRvB8Ma7Jb+GXBxxA4Z7hty98N+bp6Pz4j/Xif+NH4ItdlD3g7gkT+Ncn6cjO ynTA== 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 a14si88674pgm.206.2019.06.13.08.41.32; Thu, 13 Jun 2019 08:41:48 -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 S1731939AbfFMPjf (ORCPT + 99 others); Thu, 13 Jun 2019 11:39:35 -0400 Received: from kirsty.vergenet.net ([202.4.237.240]:40930 "EHLO kirsty.vergenet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731921AbfFMJy0 (ORCPT ); Thu, 13 Jun 2019 05:54:26 -0400 Received: from reginn.horms.nl (watermunt.horms.nl [80.127.179.77]) by kirsty.vergenet.net (Postfix) with ESMTPA id 31BC625BE48; Thu, 13 Jun 2019 19:54:24 +1000 (AEST) Received: by reginn.horms.nl (Postfix, from userid 7100) id 3954E940483; Thu, 13 Jun 2019 11:54:22 +0200 (CEST) Date: Thu, 13 Jun 2019 11:54:22 +0200 From: Simon Horman To: Wolfram Sang Cc: linux-i2c@vger.kernel.org, Mauro Carvalho Chehab , Greg Kroah-Hartman , linux-media@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 33/34] staging: media: soc_camera: soc_mt9v022: simplify getting the adapter of a client Message-ID: <20190613095421.qmi7665txyszhkwn@verge.net.au> References: <20190608105619.593-1-wsa+renesas@sang-engineering.com> <20190608105619.593-34-wsa+renesas@sang-engineering.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190608105619.593-34-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:12PM +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/soc_mt9v022.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/media/soc_camera/soc_mt9v022.c b/drivers/staging/media/soc_camera/soc_mt9v022.c > index e7e0d3d29499..1739a618846d 100644 > --- a/drivers/staging/media/soc_camera/soc_mt9v022.c > +++ b/drivers/staging/media/soc_camera/soc_mt9v022.c > @@ -883,7 +883,7 @@ static int mt9v022_probe(struct i2c_client *client, > { > struct mt9v022 *mt9v022; > struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); > - struct i2c_adapter *adapter = to_i2c_adapter(client->dev.parent); > + struct i2c_adapter *adapter = client->adapter; > struct mt9v022_platform_data *pdata; > int ret; > > -- > 2.19.1 >