Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5935396ybi; Wed, 12 Jun 2019 11:00:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqy0boO3ZVJJRAIzhk8X1CxjjmhwjDGcu4sCpkPpiIIMX9gfuARFNrfb9oECMxcuY4XpKlth X-Received: by 2002:a62:5387:: with SMTP id h129mr90212614pfb.6.1560362409305; Wed, 12 Jun 2019 11:00:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560362409; cv=none; d=google.com; s=arc-20160816; b=w7ElbwQQ7c5NbujkJzeKNexmoFZO8VClePa4qg6YlIl5hjzH0OGBNlXXCyN4TbL1AN 2F3iSMVFmwC34UIxVntI21yGPGIU6oCjVeHMe8X73YsQU4rrYhJYtSxcBohNyWNzj0kr R/2OKHJkAVV05bLmG4x/gwcEH04ls2sZAFa20YYCv2FWPYKnSx4/WmpNurT1rnSdLUWs e8m/fYKcOrBA6RykFHe3DvSYFjTCi7TmbNMiVnPVnDSjdeBIQgSelTAJLsacoGhdklf0 B2dpEu9h4UdfHRSvp7G3sQo+QZTb1cdnZPYj2z13igJlJJolh4ZdKO7vv06PwU23CK4b Ip3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:cc:to:subject:dkim-signature:dkim-filter; bh=sPdSdE4qsvSbaMak0sr8YcOjHPVPjBPKJgIQWVV5LTI=; b=Sk0SkwvlRHki04V6Q8T00Z7dV2V4s8zJr6ZNC6N9fI2ffS8a1D68BCOdWf3vsk0TGz tNMWZD0hkWeNtaZHM+XRAHpZt7Fmotij+0zZxLGYKxqRMpRHFidNBwMkPl08QVtoWwpt tCBjPAXoebWGXjXJvePV4WNytB8/5kWdG9nMvfp6cTMungoGcy8EvvGtENN3/qtt+hGN el+N3pdJ3tp0Xi9JaL+GXS1BIsGJCCAEiVEC5+E4ee1c7zVMIPf2sEqW3jz2c69eLJH6 z+H2SmaPjlxW+kgyVZLXKbDrcXKOqzIVqLfR0l+sjianacZX8EsK7EWaAM6FjX03AoEL 5o/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=ByooAjIR; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 21si399349pgy.283.2019.06.12.10.59.54; Wed, 12 Jun 2019 11:00:09 -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 header.i=@samsung.com header.s=mail20170921 header.b=ByooAjIR; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2408667AbfFLOER (ORCPT + 99 others); Wed, 12 Jun 2019 10:04:17 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:60640 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2407368AbfFLOER (ORCPT ); Wed, 12 Jun 2019 10:04:17 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20190612140415euoutp014cf11a6322c9b68f70884da0e7a52108~neHiKxAz32516525165euoutp01k for ; Wed, 12 Jun 2019 14:04:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190612140415euoutp014cf11a6322c9b68f70884da0e7a52108~neHiKxAz32516525165euoutp01k DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1560348255; bh=sPdSdE4qsvSbaMak0sr8YcOjHPVPjBPKJgIQWVV5LTI=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=ByooAjIRm3rFFDei4YHPfD5wqM5phX9lu433HkJZ2iWchvC0FAMpFlTzoUjo6rqsw Z7xDIEHLd7B7gMqR5Fo9gj5r99HF6Db7PC7VTscsF78heCSVng3Xx1MlCJbhXqLmEI TdmENNzgTSuCPCW68YOhwQmce+UIofuJ+uKr9gMM= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190612140414eucas1p1038570cb76911800945c01500eee9d4e~neHhiY01d3019030190eucas1p1H; Wed, 12 Jun 2019 14:04:14 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id CE.8A.04298.D56010D5; Wed, 12 Jun 2019 15:04:14 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20190612140413eucas1p1b72f9da419ac23b227fd7316b1bf3de6~neHgj5MGh3020330203eucas1p1G; Wed, 12 Jun 2019 14:04:13 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20190612140413eusmtrp10452264c3bc4df51d72019284fa2cc4b~neHgVF4JW2651626516eusmtrp1b; Wed, 12 Jun 2019 14:04:13 +0000 (GMT) X-AuditID: cbfec7f2-f13ff700000010ca-08-5d01065d1a86 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id EC.61.04146.C56010D5; Wed, 12 Jun 2019 15:04:13 +0100 (BST) Received: from [106.120.51.74] (unknown [106.120.51.74]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20190612140412eusmtip1ab3d5e919d1d18ce372ca3125f4a0e3b~neHf-G_0v2528925289eusmtip1K; Wed, 12 Jun 2019 14:04:12 +0000 (GMT) Subject: Re: [PATCH 02/34] gpu: drm: bridge: sii9234: simplify getting the adapter of a client To: Laurent Pinchart , Wolfram Sang Cc: linux-i2c@vger.kernel.org, David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org From: Andrzej Hajda Message-ID: <87d7a499-22b8-5e9f-8da2-54c83d1c4b2d@samsung.com> Date: Wed, 12 Jun 2019 16:04:10 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <20190608114036.GA4786@pendragon.ideasonboard.com> Content-Transfer-Encoding: 8bit Content-Language: en-US X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrNKsWRmVeSWpSXmKPExsWy7djP87pxbIyxBvP7WS16z51ksvi/bSKz xZWv79ksOicuYbfo+PuF0eLyrjlsFn3n3B3YPfZ+W8DiMbtjJqvH9m8PWD3udx9n8ni2cD2L x+dNcgFsUVw2Kak5mWWpRfp2CVwZs7/cZy74zVvxfQp/A+MW7i5GDg4JAROJ73f9uxi5OIQE VjBK7L97mAXC+cIoMWnBFtYuRk4g5zOjxKd37iA2SMOXuy1MEEXLGSW6532G6njLKLHv1yN2 kLHCAgkSN7+IgTSICGRL3FgxjxmkhllgEaPEh9ZmsKlsApoSfzffZAOxeQXsJObd2sAOYrMI qEq8P3uCGcQWFYiQ+LJzEyNEjaDEyZlPWEBsTgF7iev3/zGB2MwC8hLNW2czQ9jiEreezAe7 TkJgF7vEwfZ2JoizXST29u5jhbCFJV4d38IOYctInJ7cwwJh10vcX9HCDNHcwSixdcNOZoiE tcTh4xdZQT5jBrp6/S59SNg5Sky5HQZh8knceCsIcQKfxKRt05khwrwSHW1CEDMUJe6f3Qo1 T1xi6YWvbB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ftEDgYIySQnliSmp2aWpBaBNPHxMEp1cDIMnVn0+/fwW9ZrM7vvKJ8wMljU3a68Y75 vAe7myZNKWkRuhf1o2/ZswczOTh9LC6siG5m6rj9S0CzXCH3mXnI0j+JtvfdTK3i4n8lHWk/ 81db6haf6JGwmL8nW7W3nm3nvTvTf4O7CbeZxpl/rEndF5JfKSsnRFnc4+N8Lqa477dM3u+/ kfFKLMUZiYZazEXFiQBfsOB60gIAAA== X-CMS-MailID: 20190612140413eucas1p1b72f9da419ac23b227fd7316b1bf3de6 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20190608114101epcas3p4127647ce1c8224b4d777585bfa8e31d1 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190608114101epcas3p4127647ce1c8224b4d777585bfa8e31d1 References: <20190608105619.593-1-wsa+renesas@sang-engineering.com> <20190608105619.593-3-wsa+renesas@sang-engineering.com> <20190608114036.GA4786@pendragon.ideasonboard.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08.06.2019 13:40, Laurent Pinchart wrote: > 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 Queued to drm-misc-next. Laurent, for unknown reason patchwork does not collect yours tags, and it is not the 1st time, added manually. Reviewed-by: Andrzej Hajda  -- Regards Andrzej > >> --- >> >> 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;