From patchwork Fri Apr 1 13:17:40 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 64850 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp731490lbc; Fri, 1 Apr 2016 06:18:16 -0700 (PDT) X-Received: by 10.66.157.69 with SMTP id wk5mr30166345pab.40.1459516695660; Fri, 01 Apr 2016 06:18:15 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ny6si21355037pab.59.2016.04.01.06.18.15; Fri, 01 Apr 2016 06:18:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752930AbcDANSO (ORCPT + 4 others); Fri, 1 Apr 2016 09:18:14 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:18376 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752549AbcDANSN (ORCPT ); Fri, 1 Apr 2016 09:18:13 -0400 Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245]) by mailout2.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0O4Y00N3WIAA2R10@mailout2.w1.samsung.com> for linux-samsung-soc@vger.kernel.org; Fri, 01 Apr 2016 14:18:10 +0100 (BST) X-AuditID: cbfec7f5-f792a6d000001302-b1-56fe7512f08b Received: from eusync4.samsung.com ( [203.254.199.214]) by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id CA.B9.04866.2157EF65; Fri, 1 Apr 2016 14:18:10 +0100 (BST) Received: from amdc1339.digital.local ([106.116.147.30]) by eusync4.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0O4Y00HG5IA6GI20@eusync4.samsung.com>; Fri, 01 Apr 2016 14:18:09 +0100 (BST) From: Marek Szyprowski To: dri-devel@lists.freedesktop.org, linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Inki Dae , Joonyoung Shim , Seung-Woo Kim , Andrzej Hajda , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz Subject: [PATCH 1/7] drm/exynos: exynos5433_decon: use generic of_device_get_match_data helper Date: Fri, 01 Apr 2016 15:17:40 +0200 Message-id: <1459516666-2004-2-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.2 In-reply-to: <1459516666-2004-1-git-send-email-m.szyprowski@samsung.com> References: <1459516666-2004-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprMLMWRmVeSWpSXmKPExsVy+t/xa7pCpf/CDHa8YLS4te4cq8XGGetZ La58fc9mMen+BBaLF/cusli8fmFoMeP8PiaLtUfuslvMmPySzYHT4373cSaPvi2rGD0+b5IL YI7isklJzcksSy3St0vgyrg8fQdTwWrOinPbPrA3MLZxdDFyckgImEh0zJnHAmGLSVy4t56t i5GLQ0hgKaPEjCUHmCCcJiaJ58eamUGq2AQMJbredrGB2CICbhJNh2eyghQxC2xhkmjftRGo g4NDWCBB4stFe5AaFgFViUc/z4Nt4BVwl2g7uZUNYpucxP+XK5hAbE4BD4me/wfZQWwhoJpL B9axTmDkXcDIsIpRNLU0uaA4KT3XSK84Mbe4NC9dLzk/dxMjJKi+7mBceszqEKMAB6MSD++N aX/DhFgTy4orcw8xSnAwK4nwpuT9CxPiTUmsrEotyo8vKs1JLT7EKM3BoiTOO3PX+xAhgfTE ktTs1NSC1CKYLBMHp1QDY2pSCOfNVc5bTzvF3Wbzsp23KnStYM/mD+4WzacORKy129AVfvz5 hXpf7vsLn+nOYtj2ntnq67FOpi0ZNx/u9zG/E3b/5wnm0pA1pc+me2zfISfXe7rU47B/yJbq 2HcFH89mRK2eU/pljv28DSfKhZ5GF0k73Mk59GXXTwU706tHoi/HTeUS71ViKc5INNRiLipO BAAPNEmDJgIAAA== Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Simplify code by replacing custom code by generic helper. Signed-off-by: Marek Szyprowski --- drivers/gpu/drm/exynos/exynos5433_drm_decon.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) -- 1.9.2 -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/gpu/drm/exynos/exynos5433_drm_decon.c b/drivers/gpu/drm/exynos/exynos5433_drm_decon.c index 5245bc5e82e9..fa3dd6e91fd5 100644 --- a/drivers/gpu/drm/exynos/exynos5433_drm_decon.c +++ b/drivers/gpu/drm/exynos/exynos5433_drm_decon.c @@ -629,7 +629,6 @@ MODULE_DEVICE_TABLE(of, exynos5433_decon_driver_dt_match); static int exynos5433_decon_probe(struct platform_device *pdev) { - const struct of_device_id *of_id; struct device *dev = &pdev->dev; struct decon_context *ctx; struct resource *res; @@ -642,9 +641,7 @@ static int exynos5433_decon_probe(struct platform_device *pdev) __set_bit(BIT_SUSPENDED, &ctx->flags); ctx->dev = dev; - - of_id = of_match_device(exynos5433_decon_driver_dt_match, &pdev->dev); - ctx->out_type = (enum decon_iftype)of_id->data; + ctx->out_type = (enum decon_iftype)of_device_get_match_data(dev); if (ctx->out_type == IFTYPE_HDMI) ctx->first_win = 1;