Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1200574ybi; Sat, 8 Jun 2019 04:47:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqzjUPpJzDhVunk691bFSa8FfIouTS3uJVZ8wBOj2ZgKcxfKXotYrfZLRviBtdAk+W0JxziU X-Received: by 2002:a17:902:7591:: with SMTP id j17mr61097571pll.200.1559994472912; Sat, 08 Jun 2019 04:47:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559994472; cv=none; d=google.com; s=arc-20160816; b=wuyhIlG9wXmVNmf+/t/yHw8qTI3sdz7tYAVC3CpDC7IFeo6jveG5li8Ei+rBjosBOc eweP3LSoM9wIQjQk7KH2QqpvvcCwidS6tDigK/JIus9dOsdpbctl8iB2c8sTM4HvBPYT 4uK1JF7loiHpAuuLshOmx3JFlv5lAkU0VXYrQXGS467PRz2StUVMQVGxMFo6I8+khaOy eAGI4F1jMhyypRWfnRAXbivLpVyRqjkXP7QK2/wrHUrrvpE54q+y6jKiLRGBpmH24Yk3 sGSlJnVDaUO2DItlhIetgY2pJ1Y7k0Oqvqtzz/LxGk2ZjVih/fWs7i6QxwjMirHzHOmg RvUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=LSTFGUSjBIMSWGx9pzx6Dkgr8J3T111lA5lQyLmojEI=; b=BIYxhvL4KiWrjU370+AjcNp2jFoJlR3JQz3997mc+14hxZD/hDQ6s2DIHiLUICJB23 BxM4J1xxbkiYWtJ99sGKdw5Y/JZb78PnshKoAYoWi/Tkj2TBvXSPoT4Nerj9pPdoc9zj WSC8vmlM7U54JmVbEAu6KMshKxqlBx/G3pBQpGQYgF5GLHuCHYF1zhnWQoN5FIcygRtR Q3lVRoSQN74UjyIWXmKOHzXaXO7qebL1Cy/YgSQ0QNXU2e5H0FHu7WcNt7T+KifbnTgv jJtfHJ8S399uaVIdGliT+1cO/QnZY483lTByqDFbDQQkEf7RlbqXGFYSv6GYMdcBhtEn i0aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=ZDPaD+uG; 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 u65si4826021pfu.87.2019.06.08.04.47.37; Sat, 08 Jun 2019 04:47:52 -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; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=ZDPaD+uG; 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 S1728678AbfFHLnS (ORCPT + 99 others); Sat, 8 Jun 2019 07:43:18 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:37848 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728670AbfFHLnP (ORCPT ); Sat, 8 Jun 2019 07:43:15 -0400 Received: from pendragon.ideasonboard.com (unknown [IPv6:2a02:a03f:44f0:8500:ca05:8177:199c:fed4]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id BA9335D; Sat, 8 Jun 2019 13:43:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1559994193; bh=fx0n19qeDMTimK0VJDa0BLED3Bsk5ypjzYYcWtyI8qM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ZDPaD+uGBOpeDGvPUnyFI/5vah3s3AzGNxyTy1RxJCRRphTDxgBJJM1VZqVDcP1cl EZGYUzEMYUy/3PWydkLoruilef7KKBLifnP6pwg364yGk+Z7xxJJYiwa4KTR+KEyLn 4r+q6zI8+SEipYfGasvIMBKiQ3P4khCzwqZaDIDA= Date: Sat, 8 Jun 2019 14:42:59 +0300 From: Laurent Pinchart To: Wolfram Sang Cc: linux-i2c@vger.kernel.org, Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 09/34] media: i2c: mt9p031: simplify getting the adapter of a client Message-ID: <20190608114259.GB4786@pendragon.ideasonboard.com> References: <20190608105619.593-1-wsa+renesas@sang-engineering.com> <20190608105619.593-10-wsa+renesas@sang-engineering.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190608105619.593-10-wsa+renesas@sang-engineering.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Wolfram, Thank you for the patch. On Sat, Jun 08, 2019 at 12:55:48PM +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: Laurent Pinchart and taken in my tree. > --- > > Please apply to your subsystem tree. > > drivers/media/i2c/mt9p031.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/media/i2c/mt9p031.c b/drivers/media/i2c/mt9p031.c > index 715be3632b01..5d824dd33edd 100644 > --- a/drivers/media/i2c/mt9p031.c > +++ b/drivers/media/i2c/mt9p031.c > @@ -1034,7 +1034,7 @@ static int mt9p031_probe(struct i2c_client *client, > const struct i2c_device_id *did) > { > struct mt9p031_platform_data *pdata = mt9p031_get_pdata(client); > - struct i2c_adapter *adapter = to_i2c_adapter(client->dev.parent); > + struct i2c_adapter *adapter = client->adapter; > struct mt9p031 *mt9p031; > unsigned int i; > int ret; -- Regards, Laurent Pinchart