[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1351699047-4487-1-git-send-email-panto@antoniou-consulting.com>
Date: Wed, 31 Oct 2012 17:57:27 +0200
From: Pantelis Antoniou <panto@...oniou-consulting.com>
To: Thierry Reding <thierry.reding@...onic-design.de>
Cc: Pantelis Antoniou <panto@...oniou-consulting.com>,
Richard Purdie <rpurdie@...ys.net>,
Florian Tobias Schandinat <FlorianSchandinat@....de>,
linux-fbdev@...r.kernel.org, linux-kernel@...r.kernel.org,
Koen Kooi <koen@...inion.thruhere.net>,
Matt Porter <mporter@...com>, Russ Dill <Russ.Dill@...com>,
linux-omap@...r.kernel.org
Subject: [PATCH] pwm-backlight: Pinctrl-fy
Enable pinctrl for pwm-backlight.
Signed-off-by: Pantelis Antoniou <panto@...oniou-consulting.com>
---
drivers/video/backlight/pwm_bl.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/drivers/video/backlight/pwm_bl.c b/drivers/video/backlight/pwm_bl.c
index 0c91023..f3b6194 100644
--- a/drivers/video/backlight/pwm_bl.c
+++ b/drivers/video/backlight/pwm_bl.c
@@ -20,6 +20,8 @@
#include <linux/pwm.h>
#include <linux/pwm_backlight.h>
#include <linux/slab.h>
+#include <linux/pinctrl/consumer.h>
+#include <linux/err.h>
struct pwm_bl_data {
struct pwm_device *pwm;
@@ -180,9 +182,14 @@ static int pwm_backlight_probe(struct platform_device *pdev)
struct backlight_properties props;
struct backlight_device *bl;
struct pwm_bl_data *pb;
+ struct pinctrl *pinctrl;
unsigned int max;
int ret;
+ pinctrl = devm_pinctrl_get_select_default(&pdev->dev);
+ if (IS_ERR(pinctrl))
+ dev_warn(&pdev->dev, "unable to select pin group\n");
+
if (!data) {
ret = pwm_backlight_parse_dt(&pdev->dev, &defdata);
if (ret < 0) {
--
1.7.12
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists