From patchwork Wed May 30 12:15:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maciej Purski X-Patchwork-Id: 10438849 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 33356601E9 for ; Wed, 30 May 2018 12:18:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1CB7B289C9 for ; Wed, 30 May 2018 12:18:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 104A8289AF; Wed, 30 May 2018 12:18:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A364A2841E for ; Wed, 30 May 2018 12:18:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752144AbeE3MQc (ORCPT ); Wed, 30 May 2018 08:16:32 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:34116 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751539AbeE3MQ2 (ORCPT ); Wed, 30 May 2018 08:16:28 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20180530121625euoutp02a34ba9e588a9e04757b2653ecf85c5d9~zazej0X5Y0108401084euoutp02q; Wed, 30 May 2018 12:16:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20180530121625euoutp02a34ba9e588a9e04757b2653ecf85c5d9~zazej0X5Y0108401084euoutp02q DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1527682585; bh=HVqTI3BdlAB5hwRcCEiGVCWF1C+YJV8AMlmBjxxx6gQ=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=sohPEYlNRnSdyCtlL3fSsvE88qQmCZHDHB/THMg3iyWTE4Mw5dESCrVMKMTbIwpCB rnPqxWEJLT2q65+YLsRA1SHeQ/UauuhipShv+QMyJUI6LllYK8cor23dItWF1MbZyq 3sFmMFcAFfVIedML2PKc52mwj7zs2ApCgmpTOHpI= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20180530121624eucas1p23bc9034e1f17aa66b68bfa7287c76618~zazd1JBnn1276212762eucas1p2w; Wed, 30 May 2018 12:16:24 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id BC.C6.05700.7169E0B5; Wed, 30 May 2018 13:16:23 +0100 (BST) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20180530121623eucas1p27e08223bc5b04dbb0b0253c18a9f83d5~zazcpuW9_1086910869eucas1p2v; Wed, 30 May 2018 12:16:23 +0000 (GMT) X-AuditID: cbfec7f2-5ffe19c000011644-34-5b0e96174ce9 Received: from eusync1.samsung.com ( [203.254.199.211]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 5B.2A.04183.6169E0B5; Wed, 30 May 2018 13:16:22 +0100 (BST) Received: from AMDC2075.DIGITAL.local ([106.120.51.25]) by eusync1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0P9J00FMPJF35I90@eusync1.samsung.com>; Wed, 30 May 2018 13:16:22 +0100 (BST) From: Maciej Purski To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org Cc: David Airlie , Rob Herring , Mark Rutland , Thierry Reding , Kukjin Kim , Krzysztof Kozlowski , Archit Taneja , Andrzej Hajda , Laurent Pinchart , Inki Dae , Joonyoung Shim , Seung-Woo Kim , Kyungmin Park , Marek Szyprowski , Bartlomiej Zolnierkiewicz , Maciej Purski Subject: [PATCH v2 01/10] drm/exynos: rename "bridge_node" to "mic_bridge_node" Date: Wed, 30 May 2018 14:15:52 +0200 Message-id: <1527682561-1386-2-git-send-email-m.purski@samsung.com> X-Mailer: git-send-email 2.7.4 In-reply-to: <1527682561-1386-1-git-send-email-m.purski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAAzWSa0hTYRjHe3fO2Tkup8dp+GppsAxCyJTE3rA0Uuh8Cbp9CAVt6UGlbdqO 8xKhInnPO17KUKEpuqzWFE1LyWmalzZ15q28YUhmUnkrkTTn9Nvv+T//5//wwENhojTCkYqQ R7MKuUQq5gvwxq4N/Un7YqtA95UibzTxQk+gbH0PDyWnLxHoVelLAlV07mjDaz/5qGA6D0ff pgZxlDu3iCGDQUOij8k/SJSRryKRdm6EQMaWJ3xUamjjocqFCRw975wkUdXoIA+ltHaSqLRw gY82WsrxC4eYuvI6wBhzsnlM8+NJkilLf0QwWnUGn2lanyGY6axuHlOvSmRyGtSAWdE6XxEE CM6FstKIGFZxyueWIHw2uZ2Iem8Tpx6qBUlgxioTWFCQ9oT1U40gEwgoEV0DYPJvPWEuVgAs 3Oji7bs223WYuVEN4NDf/j3XNoBrJas7BUXxaVdYlxZs0u1oNYD1Y0u7uRhdRMCBikXCFGVL X4UNNWWYiXH6OOyd6eGbWEj7wV6DijCvc4bj+gzMFGpB+8Nnb31MOZAuJKFOVbvn8YcTmZ8x M9vC790NpJmPQGNhFm7mSJgyP7enx8G27L69WW/Y0T24yxhtBQ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OG7Q3t5gnIWThFnOjd1xjMOka/Lwr6lTnBZ3Pgj1CPrquVr Z9lMJin2EpPYM7+9/6yN/uIXws/DNH/2zSVN2/7KvJnNUvKy9FK77L6YZ3n3FSynPL0+TeuB q1Wsftqz8hbnlwufvxbZ/nTRt0wmr+SmIo+7PVuUWIozEg21mIuKEwGWdzwieAIAAA== X-CMS-MailID: 20180530121623eucas1p27e08223bc5b04dbb0b0253c18a9f83d5 X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20180530121623eucas1p27e08223bc5b04dbb0b0253c18a9f83d5 References: <1527682561-1386-1-git-send-email-m.purski@samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP When adding support for peripheral out bridges, the "bridge" name becomes imprecise as it refers to a different device than the "out_bridge". Signed-off-by: Maciej Purski --- drivers/gpu/drm/exynos/exynos_drm_dsi.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_dsi.c b/drivers/gpu/drm/exynos/exynos_drm_dsi.c index eae44fd..9599e6b 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_dsi.c +++ b/drivers/gpu/drm/exynos/exynos_drm_dsi.c @@ -279,7 +279,7 @@ struct exynos_dsi { struct list_head transfer_list; const struct exynos_dsi_driver_data *driver_data; - struct device_node *bridge_node; + struct device_node *mic_bridge_node; }; #define host_to_dsi(host) container_of(host, struct exynos_dsi, dsi_host) @@ -1631,7 +1631,7 @@ static int exynos_dsi_parse_dt(struct exynos_dsi *dsi) if (ret < 0) return ret; - dsi->bridge_node = of_graph_get_remote_node(node, DSI_PORT_IN, 0); + dsi->mic_bridge_node = of_graph_get_remote_node(node, DSI_PORT_IN, 0); return 0; } @@ -1642,7 +1642,7 @@ static int exynos_dsi_bind(struct device *dev, struct device *master, struct drm_encoder *encoder = dev_get_drvdata(dev); struct exynos_dsi *dsi = encoder_to_dsi(encoder); struct drm_device *drm_dev = data; - struct drm_bridge *bridge; + struct drm_bridge *mic_bridge; int ret; drm_encoder_init(drm_dev, encoder, &exynos_dsi_encoder_funcs, @@ -1661,10 +1661,10 @@ static int exynos_dsi_bind(struct device *dev, struct device *master, return ret; } - if (dsi->bridge_node) { - bridge = of_drm_find_bridge(dsi->bridge_node); - if (bridge) - drm_bridge_attach(encoder, bridge, NULL); + if (dsi->mic_bridge_node) { + mic_bridge = of_drm_find_bridge(dsi->mic_bridge_node); + if (mic_bridge) + drm_bridge_attach(encoder, mic_bridge, NULL); } return mipi_dsi_host_register(&dsi->dsi_host); @@ -1783,7 +1783,7 @@ static int exynos_dsi_remove(struct platform_device *pdev) { struct exynos_dsi *dsi = platform_get_drvdata(pdev); - of_node_put(dsi->bridge_node); + of_node_put(dsi->mic_bridge_node); pm_runtime_disable(&pdev->dev);