From patchwork Mon May 28 09:47:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maciej Purski X-Patchwork-Id: 10430327 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 3B829601BE for ; Mon, 28 May 2018 09:47:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2C856289A5 for ; Mon, 28 May 2018 09:47:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 20D91289D7; Mon, 28 May 2018 09:47:40 +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=ham 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 AAD4C289A5 for ; Mon, 28 May 2018 09:47:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754337AbeE1Jrc (ORCPT ); Mon, 28 May 2018 05:47:32 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:54995 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754194AbeE1Jr1 (ORCPT ); Mon, 28 May 2018 05:47:27 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20180528094724euoutp01866446e973e9ee02989115cd67d81f89~yxezc_QEg1912619126euoutp011; Mon, 28 May 2018 09:47:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20180528094724euoutp01866446e973e9ee02989115cd67d81f89~yxezc_QEg1912619126euoutp011 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1527500844; bh=HVqTI3BdlAB5hwRcCEiGVCWF1C+YJV8AMlmBjxxx6gQ=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=Ifptas/KkooKaOYTkRexCrL6pu5JtNz6p+PDoK+OzHyNpQ5PyqMcbusdskteolJq9 EsFfs7BusYfWhg+zTJzQpXo56sYgKv1tMck7cfAldM7B5kapYuwKfhY8UeDHLSLelW nMh2R4S3QevYjOb3jhgpCUw/NkFQEQFTn+aD8Ksg= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20180528094723eucas1p263ca24fbcb2fd33418789fc3dc3055a1~yxeyn5KYC2641226412eucas1p2o; Mon, 28 May 2018 09:47:23 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id C7.71.05700.B20DB0B5; Mon, 28 May 2018 10:47:23 +0100 (BST) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20180528094722eucas1p28c087e8b9174e0591bf3cb6526885777~yxex0r8sk2267622676eucas1p2n; Mon, 28 May 2018 09:47:22 +0000 (GMT) X-AuditID: cbfec7f2-1dbff70000011644-b1-5b0bd02bc827 Received: from eusync1.samsung.com ( [203.254.199.211]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 40.A2.04183.A20DB0B5; Mon, 28 May 2018 10:47: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 <0P9F00D27N6R5P70@eusync1.samsung.com>; Mon, 28 May 2018 10:47: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 01/12] drm/exynos: rename "bridge_node" to "mic_bridge_node" Date: Mon, 28 May 2018 11:47:05 +0200 Message-id: <1527500833-16005-2-git-send-email-m.purski@samsung.com> X-Mailer: git-send-email 2.7.4 In-reply-to: <1527500833-16005-1-git-send-email-m.purski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAAzWSe0iTYRTGe7fv5mr2ORe+WQkNQlG0hIIXtBAy+krBoISYlq788rppm/eg xPJ+mXkhNVMxL7Wm1RRvoDS1hi3vpqWZlpaaiZUpiHRxfvrf7zznOeeBw6H4oiTcmgpWRLJK hSxMQgiwxldrfY4O/Tt9jjTOSdBYXS+Osnq7eSgxdRFHzwuf4qisa0MbXlkiUO5kDobmPg5g SD29wEd9fc9I1JP4nURpdytJpJsewdFQawmBCvvaeah8fgxDtV0TJKoaHeChpLYuEhXmzRNo rbUUc9vDaEu1gBnKzuIxLcUTJHM/tQhndJo0gmlancKZyQwDj6mvvMVkN2gAs6yzOSeQClwD 2LDgaFZ5+IS/IOhToh6PeGkRqxl8DBLAlHk6MKMgfRS2rb8g0oGAEtGPAGx7OEKaGiJ6GcDZ Jw7bpsGJVsCZqgEcMWhwrvgHYKfxN5YOKIqg7aE2xc+ki2kNgPXvFjcn+HQBDvvLFnDTKkva E47lrxEmxuhDsKjOsBknpN1h5lIJycXZwPe9aXwTm9Gn4FBbMmEKgLSahOpQzuIO38yu8ji2 hN8MDVuj++FQXgbGcThM+jq9pcfC9iwjzrEL7DQMbDKfNoe5jff43HohTE0Wc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8dDpd/t2pb2dYKH1 eKYYR6/qwgn6Syd6WZ2yveOyxvuUgL5J55+yuCYr2wxHf67TJ+N8t5xLLWH7vv672LMQO/YI buM7mtfVPuzSuvl7R+YJD7HNc5fGW061/birVImlOCPRUIu5qDgRAAG2vz95AgAA X-CMS-MailID: 20180528094722eucas1p28c087e8b9174e0591bf3cb6526885777 X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20180528094722eucas1p28c087e8b9174e0591bf3cb6526885777 References: <1527500833-16005-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);