From patchwork Mon Jan 2 05:54:34 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: thomas.abraham@linaro.org X-Patchwork-Id: 6020 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id A3BA123E07 for ; Mon, 2 Jan 2012 05:51:56 +0000 (UTC) Received: from mail-ee0-f52.google.com (mail-ee0-f52.google.com [74.125.83.52]) by fiordland.canonical.com (Postfix) with ESMTP id 9AD85A18495 for ; Mon, 2 Jan 2012 05:51:56 +0000 (UTC) Received: by eeke52 with SMTP id e52so15866021eek.11 for ; Sun, 01 Jan 2012 21:51:56 -0800 (PST) Received: by 10.205.120.14 with SMTP id fw14mr10596506bkc.53.1325483516227; Sun, 01 Jan 2012 21:51:56 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.205.82.144 with SMTP id ac16cs304898bkc; Sun, 1 Jan 2012 21:51:56 -0800 (PST) Received: by 10.68.189.170 with SMTP id gj10mr110965663pbc.16.1325483514004; Sun, 01 Jan 2012 21:51:54 -0800 (PST) Received: from mailout1.samsung.com (mailout1.samsung.com. [203.254.224.24]) by mx.google.com with ESMTP id l8si6988156pbo.86.2012.01.01.21.51.53; Sun, 01 Jan 2012 21:51:54 -0800 (PST) Received-SPF: neutral (google.com: 203.254.224.24 is neither permitted nor denied by best guess record for domain of thomas.abraham@linaro.org) client-ip=203.254.224.24; Authentication-Results: mx.google.com; spf=neutral (google.com: 203.254.224.24 is neither permitted nor denied by best guess record for domain of thomas.abraham@linaro.org) smtp.mail=thomas.abraham@linaro.org Received: from epcpsbgm1.samsung.com (mailout1.samsung.com [203.254.224.24]) by mailout1.samsung.com (Oracle Communications Messaging Exchange Server 7u4-19.01 64bit (built Sep 7 2010)) with ESMTP id <0LX5001M5PM9ZQE0@mailout1.samsung.com> for patches@linaro.org; Mon, 02 Jan 2012 14:51:52 +0900 (KST) X-AuditID: cbfee61a-b7b89ae000001a15-67-4f0145f81769 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (MMPCPMTA) with SMTP id 24.00.06677.8F5410F4; Mon, 02 Jan 2012 14:51:52 +0900 (KST) Received: from localhost.localdomain ([107.108.73.37]) by mmp2.samsung.com (Oracle Communications Messaging Exchange Server 7u4-19.01 64bit (built Sep 7 2010)) with ESMTPA id <0LX500HWVPLAPJ60@mmp2.samsung.com> for patches@linaro.org; Mon, 02 Jan 2012 14:51:52 +0900 (KST) From: Thomas Abraham To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: rpurdie@rpsys.net, linux-samsung-soc@vger.kernel.org, grant.likely@secretlab.ca, rob.herring@calxeda.com, kgene.kim@samsung.com, jg1.han@samsung.com, broonie@opensource.wolfsonmicro.com, kyungmin.park@samsung.com, cbou@mail.ru, kwangwoo.lee@gmail.com, augulis.darius@gmail.com, ben-linux@fluff.org, patches@linaro.org Subject: [RFC][PATCH 3/4] ARM: Exynos: Remove platform data of platform-lcd driver Date: Mon, 02 Jan 2012 11:24:34 +0530 Message-id: <1325483675-21908-4-git-send-email-thomas.abraham@linaro.org> X-Mailer: git-send-email 1.6.6.rc2 In-reply-to: <1325483675-21908-3-git-send-email-thomas.abraham@linaro.org> References: <1325483675-21908-1-git-send-email-thomas.abraham@linaro.org> <1325483675-21908-2-git-send-email-thomas.abraham@linaro.org> <1325483675-21908-3-git-send-email-thomas.abraham@linaro.org> X-Brightmail-Tracker: AAAAAA== Remove the platform data for platform-lcd driver and add platform data for Hydis hv070wsa lcd panel. Signed-off-by: Thomas Abraham --- arch/arm/mach-exynos/mach-origen.c | 25 ++++--------------------- 1 files changed, 4 insertions(+), 21 deletions(-) diff --git a/arch/arm/mach-exynos/mach-origen.c b/arch/arm/mach-exynos/mach-origen.c index 23fc5cb..0f08113 100644 --- a/arch/arm/mach-exynos/mach-origen.c +++ b/arch/arm/mach-exynos/mach-origen.c @@ -554,31 +554,14 @@ static struct platform_device origen_device_gpiokeys = { }, }; -static void lcd_hv070wsa_set_power(struct plat_lcd_data *pd, unsigned int power) -{ - int ret; - - if (power) - ret = gpio_request_one(EXYNOS4_GPE3(4), - GPIOF_OUT_INIT_HIGH, "GPE3_4"); - else - ret = gpio_request_one(EXYNOS4_GPE3(4), - GPIOF_OUT_INIT_LOW, "GPE3_4"); - - gpio_free(EXYNOS4_GPE3(4)); - - if (ret) - pr_err("failed to request gpio for LCD power: %d\n", ret); -} - -static struct plat_lcd_data origen_lcd_hv070wsa_data = { - .set_power = lcd_hv070wsa_set_power, +static struct plat_lcd_hydis_hv070wsa_pdata hv070wsa_pdata = { + .gpio = EXYNOS4_GPE3(4), }; static struct platform_device origen_lcd_hv070wsa = { - .name = "platform-lcd", + .name = "hv070wsa", .dev.parent = &s5p_device_fimd0.dev, - .dev.platform_data = &origen_lcd_hv070wsa_data, + .dev.platform_data = &hv070wsa_pdata, }; static struct s3c_fb_pd_win origen_fb_win0 = {