From patchwork Wed Jul 25 15:46:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrzej Hajda X-Patchwork-Id: 10544191 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 12A87139A for ; Wed, 25 Jul 2018 15:47:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 00F8A2A508 for ; Wed, 25 Jul 2018 15:47:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E89412A54F; Wed, 25 Jul 2018 15:47:03 +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 3DEAB2A50F for ; Wed, 25 Jul 2018 15:47:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728514AbeGYQ7Q (ORCPT ); Wed, 25 Jul 2018 12:59:16 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:33542 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728557AbeGYQ7Q (ORCPT ); Wed, 25 Jul 2018 12:59:16 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20180725154700euoutp01331f96192ac8b6642719ac44096ff088~EpzVaNeW11687316873euoutp01g; Wed, 25 Jul 2018 15:47:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20180725154700euoutp01331f96192ac8b6642719ac44096ff088~EpzVaNeW11687316873euoutp01g DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1532533620; bh=ofXvK2+TsfMJRBgCp+oZ/bH/OnpQ/YPS5v8mpImDBz4=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=cP/73LK7L7zJPL+qRob5XaJHs2QgnftKiGMvaiEQ2/czbfvdUlmZSC7RmDoErhv1F eEtajp+v9o7JabnWPEFy8xg3rzPEARegs+ifAZ48ww/I73gRnyhIcm+YDHyxSEtwIr 3z7pNa8ST1E0oFI9mt7fTZbXmkrmLU9YmOtjS8bo= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20180725154700eucas1p1c9f0cc0ca6401676b4a0553fe09cfd97~EpzU6nxDG1465114651eucas1p1d; Wed, 25 Jul 2018 15:47:00 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id AC.E8.04627.37B985B5; Wed, 25 Jul 2018 16:46:59 +0100 (BST) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20180725154659eucas1p17b6862ede839fa0d091acff69090e87b~EpzUOkHBT0824808248eucas1p1_; Wed, 25 Jul 2018 15:46:59 +0000 (GMT) X-AuditID: cbfec7f2-0edff70000021213-6c-5b589b732a1a Received: from eusync4.samsung.com ( [203.254.199.214]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 42.03.04178.37B985B5; Wed, 25 Jul 2018 16:46:59 +0100 (BST) Received: from AMDC2768.DIGITAL.local ([106.120.43.17]) by eusync4.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0PCF00M07IIAVC60@eusync4.samsung.com>; Wed, 25 Jul 2018 16:46:59 +0100 (BST) From: Andrzej Hajda To: dri-devel@lists.freedesktop.org, linux-samsung-soc@vger.kernel.org, Inki Dae Cc: Maciej Purski , Bartlomiej Zolnierkiewicz , Marek Szyprowski , Andrzej Hajda , Rob Herring , Thierry Reding , Krzysztof Kozlowski , Archit Taneja , Laurent Pinchart Subject: [PATCH v5 1/9] drm/exynos: rename bridge_node to in_bridge_node Date: Wed, 25 Jul 2018 17:46:36 +0200 Message-id: <20180725154644.25412-2-a.hajda@samsung.com> X-Mailer: git-send-email 2.18.0 In-reply-to: <20180725154644.25412-1-a.hajda@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrNIsWRmVeSWpSXmKPExsWy7djPc7rFsyOiDd5fs7G4te4cq0VTx1tW i40z1rNaXPn6ns1i0v0JLBbnz29gt+icuITdYsb5fUwWC17eYrFYe+Quu0Xr3iPsFj93zWNx 4PG43NfL5LFz1l12j9kdM1k9Nq3qZPO4332cyaNvyypGj8+b5ALYo7hsUlJzMstSi/TtErgy 7pxLK5gnXLHz4DumBsYJAl2MnBwSAiYSR1t7WLsYuTiEBFYwSsy4dJkJwvnMKPFi/ScWmKo9 f8+xgthCAssYJV5f5IAo+s8ocfAoRIJNQFPi7+abbCC2iECmxIaDC9lBipgFepglzp2+AzSW g0NYwEPi3UpVkBoWAVWJ33sXMoLYvAIWEke7dzJCLJOXeHi8HczmFLCUuLL/EBvIHAmBHWwS 8+avh7rIReLVnjY2CFtY4tXxLewQtoxEZ8dBJgi7XqJp5hVmiOYORokTi5dDNVhLHD5+Eexq ZgE+iUnbpjODHCchwCvR0SYEUeIhMa19FjQoehglfn8/zT6BUXIBI8MqRvHU0uLc9NRiw7zU cr3ixNzi0rx0veT83E2MwCg+/e/4px2MXy8lHWIU4GBU4uF90RQeLcSaWFZcmXuIUYKDWUmE 1+UwUIg3JbGyKrUoP76oNCe1+BCjNAeLkjivtE9EtJBAemJJanZqakFqEUyWiYNTqoHRlFWt qy2cW8Js2uPte1KmBrw5+aD+G99808CeqO9Clguqpk7aej7loUdAxPb4Xgt9lstnYq2835/S zLlWEpkh8M9Z4uunDz7XFjM8+LZSRIyP67mRavJCS2P23EfCFfmLOCYwz8xKCWUS/nj6UtIW 9ZzFU7+W257+2edygieV7SMbi7KDzhclluKMREMt5qLiRAAlXVt/3gIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrOLMWRmVeSWpSXmKPExsVy+t/xa7rFsyOiDdr+8VncWneO1aKp4y2r xcYZ61ktrnx9z2Yx6f4EFovz5zewW3ROXMJuMeP8PiaLBS9vsVisPXKX3aJ17xF2i5+75rE4 8Hhc7utl8tg56y67x+yOmawem1Z1snnc7z7O5NG3ZRWjx+dNcgHsUVw2Kak5mWWpRfp2CVwZ d86lFcwTrth58B1TA+MEgS5GTg4JAROJPX/PsYLYQgJLGCX6JqVA2I1MEv9aC0BsNgFNib+b b7KB2CICmRKX1rYydzFycTAL9DFL7P22kqmLkYNDWMBD4t1KVZAaFgFVid97FzKC2LwCFhJH u3cyQuySl3h4vB3M5hSwlLiy/xAbxC4LiQMb17FNYORZwMiwilEktbQ4Nz232FCvODG3uDQv XS85P3cTIzD4th37uXkH46WNwYcYBTgYlXh4L8yMiBZiTSwrrsw9xCjBwawkwutyODxaiDcl sbIqtSg/vqg0J7X4EKM0B4uSOO95g8ooIYH0xJLU7NTUgtQimCwTB6dUA2Px0cuJrYyfi780 7ZOw2dIdLR8Rm7LZID1c7V3i0UiGR0kPD2TcVvi3XkKJN3VS7qVrEvzP1l1JNDmnESy3TpF3 TvVRlmzzXTffrtw+OybWMSbmZued5e96arxWx7La37n5QWz7Dzeb+rbGE0v2FU3j+rGp1VBh y5ZHk8vut7NIsiXpOssonFFiKc5INNRiLipOBACI7ZS9OgIAAA== X-CMS-MailID: 20180725154659eucas1p17b6862ede839fa0d091acff69090e87b X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20180725154659eucas1p17b6862ede839fa0d091acff69090e87b References: <20180725154644.25412-1-a.hajda@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 From: Maciej Purski Driver uses bridge_node to refer to bridge on input side of DSI. Since we want to add support for bridges on output side lets add "in" prefix to avoid confusion with out bridges. Changes in v5: - replace mic_ prefix with in_ Signed-off-by: Maciej Purski [ a.hajda@samsuung.com: v5 ] Signed-off-by: Andrzej Hajda --- 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 7c3030b7e586..351403f9d245 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 *in_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->in_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 *in_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->in_bridge_node) { + in_bridge = of_drm_find_bridge(dsi->in_bridge_node); + if (in_bridge) + drm_bridge_attach(encoder, in_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->in_bridge_node); pm_runtime_disable(&pdev->dev);