From patchwork Wed Oct 31 15:57:27 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pantelis Antoniou X-Patchwork-Id: 1671991 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id AB863DFFB5 for ; Tue, 30 Oct 2012 18:14:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965234Ab2J3SOR (ORCPT ); Tue, 30 Oct 2012 14:14:17 -0400 Received: from li42-95.members.linode.com ([209.123.162.95]:59059 "EHLO li42-95.members.linode.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934110Ab2J3SMq (ORCPT ); Tue, 30 Oct 2012 14:12:46 -0400 Received: from sles11esa.localdomain (unknown [195.97.110.117]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: panto) by li42-95.members.linode.com (Postfix) with ESMTPSA id B43909C1F4; Tue, 30 Oct 2012 18:04:20 +0000 (UTC) From: Pantelis Antoniou To: Thierry Reding Cc: Pantelis Antoniou , Richard Purdie , Florian Tobias Schandinat , linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, Koen Kooi , Matt Porter , Russ Dill , linux-omap@vger.kernel.org Subject: [PATCH] pwm-backlight: Pinctrl-fy Date: Wed, 31 Oct 2012 17:57:27 +0200 Message-Id: <1351699047-4487-1-git-send-email-panto@antoniou-consulting.com> X-Mailer: git-send-email 1.7.12 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org Enable pinctrl for pwm-backlight. Signed-off-by: Pantelis Antoniou --- 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 #include #include +#include +#include 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) {