From patchwork Wed Sep 26 02:17:02 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Parsons X-Patchwork-Id: 1507171 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id 8F12EDFE80 for ; Wed, 26 Sep 2012 02:18:51 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TGhBS-0003F0-IP; Wed, 26 Sep 2012 02:17:06 +0000 Received: from nm23-vm0.bullet.mail.ukl.yahoo.com ([217.146.177.37]) by merlin.infradead.org with smtp (Exim 4.76 #1 (Red Hat Linux)) id 1TGhBP-0003Em-UH for linux-arm-kernel@lists.infradead.org; Wed, 26 Sep 2012 02:17:04 +0000 Received: from [217.146.183.213] by nm23.bullet.mail.ukl.yahoo.com with NNFMP; 26 Sep 2012 02:17:02 -0000 Received: from [77.238.184.67] by tm6.bullet.mail.ukl.yahoo.com with NNFMP; 26 Sep 2012 02:17:02 -0000 Received: from [127.0.0.1] by smtp136.mail.ukl.yahoo.com with NNFMP; 26 Sep 2012 02:17:02 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1348625822; bh=pSur6hVy8tYCtcbsp/CjOR9R5n3gp+DZnkzEBQa4rDY=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:X-Forwarded-Message-Id:Content-Type:Content-Transfer-Encoding; b=gJwUTtXa4Ivkz/RHyDRJjlESt0aSHgbRsS2CeX4Xroe3B3Gi6LiyBUTWZ2ZtgTZBRMEY/z1CzNeJshESV6HMZRvQi6tqGKOTLw8cwAx+LFiZt+jbTsQwvjAblhymbaxwYSUwd8sY0+96KKZ9ccVExQMABUioPvZ0jHX4nCBrHm8= X-Yahoo-Newman-Id: 430567.32748.bm@smtp136.mail.ukl.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: AuzEPPkVM1kt9u0tznniPqPHFtKhwlL3BVOjonIx2QqTmRz GBplz1EH3Q0VItT5NMvfBZJB9yTZrXSfdSp9Czh6JIZm_lCkFY_manuP3Rg. ecA3.9q9kfvjtSmayl9cce5eBPvivKqf65eMJf1aQHqw4.17T55JMVXDRDV7 bUMl4M1OuciCH_NuGSwqffwzJ6ANekV2lK4HENPot51.XlqUgf0hE8iRDmGQ FKmjER3Y18LeVVx7JFPU9dQ8.rjBbYG4_JQGgB1eVxt7pUiXbbLHa3UC4dl0 aOiA3oJ8LGZPmfy07A9gUyAZnRLlpdBnnxzLcponmJPyHbrJaBc2l6GY5EQq eY.PJof_FYAssIdxMaOO8M2Q7Ax4.iBloAhKaSXWlQ.KDh8_L8siBJIz_U7c .QfWZF_RO_1vN0o17bqWA1A-- X-Yahoo-SMTP: 5Vuzu2WswBCxMnJ0hjKohBcp6M6Es6bt5AQ- Received: from [192.168.0.2] (lost.distance@87.115.112.140 with plain) by smtp136.mail.ukl.yahoo.com with SMTP; 26 Sep 2012 02:17:02 +0000 GMT Message-ID: <5062659E.6030104@yahoo.com> Date: Wed, 26 Sep 2012 03:17:02 +0100 From: Paul Parsons User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 MIME-Version: 1.0 To: linux-arm-kernel@lists.infradead.org Subject: [PATCH] ARM: pxa: hx4700: Fix backlight PWM device number References: <5062652A.8070603@yahoo.com> In-Reply-To: <5062652A.8070603@yahoo.com> X-Forwarded-Message-Id: <5062652A.8070603@yahoo.com> X-Spam-Note: CRM114 invocation failed X-Spam-Score: -2.8 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.8 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (lost.distance[at]yahoo.com) -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [217.146.177.37 listed in list.dnswl.org] -0.8 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Recent changes to PXA PWM support changed the PXA27X PWM device numbering scheme. The linux-3.5 PXA PWM driver followed the hardware numbering scheme for the 4 PWMs, while the linux-3.6-rc1 PXA PWM driver has adopted a linear numbering scheme: Address Hardware 3.5 pwm_id 3.6-rc1 pwm_id 0x40b00000 PWM0 0 0 0x40b00010 PWM2 2 1 0x40c00000 PWM1 1 2 0x40c00010 PWM3 3 3 The hx4700 backlight uses PWM1 at 0x40c00000. Consequently the pwm_id must be changed from 1 to 2. Signed-off-by: Paul Parsons Cc: Thierry Reding --- arch/arm/mach-pxa/hx4700.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-pxa/hx4700.c b/arch/arm/mach-pxa/hx4700.c index e631198..3720f99 100644 --- a/arch/arm/mach-pxa/hx4700.c +++ b/arch/arm/mach-pxa/hx4700.c @@ -556,7 +556,7 @@ static struct platform_device hx4700_lcd = { */ static struct platform_pwm_backlight_data backlight_data = { - .pwm_id = 1, + .pwm_id = 2, /* PWM1 */ .max_brightness = 200, .dft_brightness = 100, .pwm_period_ns = 30923,