From: <hap...@us...> - 2006-10-04 05:42:06
|
Revision: 598 http://svn.sourceforge.net/hackndev/?rev=598&view=rev Author: happy-slapin Date: 2006-09-29 04:16:38 -0700 (Fri, 29 Sep 2006) Log Message: ----------- ALL:pxapwm: Fixed default intensity setting Modified Paths: -------------- linux4palm/linux/trunk/drivers/video/backlight/palmz72_bl.c linux4palm/linux/trunk/drivers/video/backlight/pxapwm_bl.c Modified: linux4palm/linux/trunk/drivers/video/backlight/palmz72_bl.c =================================================================== --- linux4palm/linux/trunk/drivers/video/backlight/palmz72_bl.c 2006-09-29 10:12:47 UTC (rev 597) +++ linux4palm/linux/trunk/drivers/video/backlight/palmz72_bl.c 2006-09-29 11:16:38 UTC (rev 598) @@ -35,7 +35,7 @@ spin_lock_irqsave(&bl_lock, flags); - PWM_CTRL1 = 1; + PWM_CTRL1 = 0; if (intensity) { PWM_PWDUTY0 = intensity; Modified: linux4palm/linux/trunk/drivers/video/backlight/pxapwm_bl.c =================================================================== --- linux4palm/linux/trunk/drivers/video/backlight/pxapwm_bl.c 2006-09-29 10:12:47 UTC (rev 597) +++ linux4palm/linux/trunk/drivers/video/backlight/pxapwm_bl.c 2006-09-29 11:16:38 UTC (rev 598) @@ -41,9 +41,9 @@ period = 0; prescaler=0; } - + spin_lock_irqsave(&bl->lock, flags); - + switch (bl->pwm) { case 0: PWM_CTRL0 = prescaler; @@ -70,7 +70,7 @@ } #ifdef CONFIG_PM -static int stored_intensity; +static int stored_intensity = 0; static int pxapwmbl_suspend(struct platform_device *pdev, pm_message_t state) { struct pxapwmbl_platform_data *bl = pdev->dev.platform_data; @@ -102,7 +102,6 @@ if (intensity < 0) intensity = 0; - pxapwmbl_send_intensity(bl, intensity); bl->intensity=intensity; return 0; @@ -149,6 +148,7 @@ return PTR_ERR (bl->dev); pxapwmbl_send_intensity(bl, bl->default_intensity); + bl->intensity = bl->default_intensity; pxapwmbl_limit_intensity(pdev, 0); printk("PXA PWM backlight driver initialized.\n"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |