From patchwork Mon Dec 5 08:48:41 2011 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: 5448 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 F31E323E0C for ; Mon, 5 Dec 2011 08:47:08 +0000 (UTC) Received: from mail-lpp01m010-f52.google.com (mail-lpp01m010-f52.google.com [209.85.215.52]) by fiordland.canonical.com (Postfix) with ESMTP id C92BCA181EA for ; Mon, 5 Dec 2011 08:47:08 +0000 (UTC) Received: by lagm6 with SMTP id m6so24933lag.11 for ; Mon, 05 Dec 2011 00:47:08 -0800 (PST) Received: by 10.152.122.34 with SMTP id lp2mr5331855lab.20.1323074828435; Mon, 05 Dec 2011 00:47:08 -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.152.41.198 with SMTP id h6cs247081lal; Mon, 5 Dec 2011 00:47:07 -0800 (PST) Received: by 10.68.208.194 with SMTP id mg2mr21275677pbc.112.1323074825208; Mon, 05 Dec 2011 00:47:05 -0800 (PST) Received: from mailout1.samsung.com (mailout1.samsung.com. [203.254.224.24]) by mx.google.com with ESMTP id a5si22684620pbi.34.2011.12.05.00.47.04; Mon, 05 Dec 2011 00:47:04 -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 epcpsbgm2.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 <0LVQ007Y93233VD0@mailout1.samsung.com> for patches@linaro.org; Mon, 05 Dec 2011 17:47:03 +0900 (KST) X-AuditID: cbfee61b-b7c4cae000003c38-a4-4edc8507a82a Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (MMPCPMTA) with SMTP id 88.49.15416.7058CDE4; Mon, 05 Dec 2011 17:47:03 +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 <0LVQ00M5L3256WJ0@mmp2.samsung.com> for patches@linaro.org; Mon, 05 Dec 2011 17:47:03 +0900 (KST) From: Thomas Abraham To: rpurdie@rpsys.net Cc: ben-linux@fluff.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, kgene.kim@samsung.com, patches@linaro.org Subject: [PATCH] backlight: add regulator support for platform_lcd driver Date: Mon, 05 Dec 2011 14:18:41 +0530 Message-id: <1323074921-29291-1-git-send-email-thomas.abraham@linaro.org> X-Mailer: git-send-email 1.6.6.rc2 X-Brightmail-Tracker: AAAAAA== The power source to the lcd panel or the lcd interface such as lvds transmitters could be controlled by a regulator supply. Add support for enabling/disabling the regulator when switching power to lcd. Two new elements 'min_uV' and 'max_uV' in the platform data are added to allow platform code to specifiy the desired output voltage from the regulator. Cc: Ben Dooks Signed-off-by: Thomas Abraham --- drivers/video/backlight/platform_lcd.c | 29 +++++++++++++++++++++++++++++ include/video/platform_lcd.h | 7 +++++++ 2 files changed, 36 insertions(+), 0 deletions(-) diff --git a/drivers/video/backlight/platform_lcd.c b/drivers/video/backlight/platform_lcd.c index 302330a..ffa8108 100644 --- a/drivers/video/backlight/platform_lcd.c +++ b/drivers/video/backlight/platform_lcd.c @@ -17,6 +17,8 @@ #include #include #include +#include +#include #include