Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1205509ybi; Sat, 8 Jun 2019 04:55:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqz1fIrV7WB2AGpahc9K9iuxc8r9OkEJ7EBTj6uKIxjwoSFI6Dn5D7SJEkjJ9RkGTgfw6Qx9 X-Received: by 2002:a63:eb55:: with SMTP id b21mr7036752pgk.67.1559994914673; Sat, 08 Jun 2019 04:55:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559994914; cv=none; d=google.com; s=arc-20160816; b=ozKob9hXfqrdQGNhsyezDDfkLgfByo7xtXrfqAR8zvINkDLfhT+uZW/l/nzRYYFvqn Pqdw2Ouwb3b94315wir5NHG4uOeaGWeksGctoZa4bbWHj9X0Vky04MtFJ646UzjcGysA DsoqMCyCXJeK9Fw50Y23gy8s8n+lpiYmiagTZJk0dJbIGr1ELcuED2+PkNNkfM+7quyL j2hmakh7qbJ/IEpuA6WfbvpZb5GVOTvWSmY9XQQ6dRst/DOwsttlW5enEy6gvg4mJ2DQ i5J8z0+0sjTQl5hD9Axw8dVpr1V2JNT0N5qRUf+S4x3uDyJdoCgOGt3Q8bsTLRr37CwN 7wdA== 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=u/AONnKdnc4dq6nC8HI8OuhT6Br20mzgutU51nlJNsg=; b=zuj8lHffVldjPKM31QbidM0b7X8D0ZTutn/ZzsmQQTEJorPqdgofd7Q2/aplPTneSR F0Wxa8/mf9HvUZdGgWGU+MxkI18K8QNqXIT5HyNeajeWe1eBErH3oiz4KCVJ+KUW5Rb0 K3+89OcqKXzg1Xt9mhID5bvQwnUgWBlvsCRTcX3rOU7Q+q4KCR+k/OCQSldPIlzxlSH3 AOZw8at52ZsZ7KudOnwuZIwL9fHM8vBEYdU6se1WapOS+reiYDX6iiBTRZN4CPLymtd+ ibiuc2FXwXFybzLyXqSs1pZ5T7Hrm7n/gimDLXd6frdgPu9ahRGEs/pcDbf0aCaAbkAi GFdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=ZQCx1eiC; 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 16si4607898pgl.570.2019.06.08.04.54.59; Sat, 08 Jun 2019 04:55:14 -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=ZQCx1eiC; 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 S1729094AbfFHLxO (ORCPT + 99 others); Sat, 8 Jun 2019 07:53:14 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:37818 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727928AbfFHLkx (ORCPT ); Sat, 8 Jun 2019 07:40:53 -0400 Received: from pendragon.ideasonboard.com (unknown [IPv6:2a02:a03f:44f0:8500:ca05:8177:199c:fed4]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id F32632DF; Sat, 8 Jun 2019 13:40:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1559994051; bh=2pD/DWAV/LFT+GMwf8BuOm6cuztabrBNEg4O9KboG8E=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ZQCx1eiCDJiWj9weXrSR2mt+eVr3vMSmKr2JRXMhLvVr438Kc+9jHmqwr3hqpPEzh jyFH/ONeVdRwsAoxiudegAlKmQqfgG4kZCPympvF3msG9Cs4AnrhrJ5GR1XmJDOs7B 2F+v2IOoHqOBsFh4io/wy3pBapDdqhdLu33dh1RE= Date: Sat, 8 Jun 2019 14:40:36 +0300 From: Laurent Pinchart To: Wolfram Sang Cc: linux-i2c@vger.kernel.org, Andrzej Hajda , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 02/34] gpu: drm: bridge: sii9234: simplify getting the adapter of a client Message-ID: <20190608114036.GA4786@pendragon.ideasonboard.com> References: <20190608105619.593-1-wsa+renesas@sang-engineering.com> <20190608105619.593-3-wsa+renesas@sang-engineering.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190608105619.593-3-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:41PM +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 > --- > > Please apply to your subsystem tree. > > drivers/gpu/drm/bridge/sii9234.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/bridge/sii9234.c b/drivers/gpu/drm/bridge/sii9234.c > index b36bbafb0e43..25d4ad8c7ad6 100644 > --- a/drivers/gpu/drm/bridge/sii9234.c > +++ b/drivers/gpu/drm/bridge/sii9234.c > @@ -815,7 +815,7 @@ static irqreturn_t sii9234_irq_thread(int irq, void *data) > static int sii9234_init_resources(struct sii9234 *ctx, > struct i2c_client *client) > { > - struct i2c_adapter *adapter = to_i2c_adapter(client->dev.parent); > + struct i2c_adapter *adapter = client->adapter; > int ret; > > if (!ctx->dev->of_node) { > @@ -897,7 +897,7 @@ static const struct drm_bridge_funcs sii9234_bridge_funcs = { > static int sii9234_probe(struct i2c_client *client, > const struct i2c_device_id *id) > { > - struct i2c_adapter *adapter = to_i2c_adapter(client->dev.parent); > + struct i2c_adapter *adapter = client->adapter; > struct sii9234 *ctx; > struct device *dev = &client->dev; > int ret; -- Regards, Laurent Pinchart