[PATCH v3 14/18] ARM: clps711x: Moving backlight controls of framebuffer driver to the board

Olof Johansson olof at lixom.net
Wed Nov 21 01:37:11 EST 2012


Hi,

On Sat, Nov 17, 2012 at 05:57:20PM +0400, Alexander Shiyan wrote:

> @@ -162,25 +158,12 @@ clps7111fb_set_par(struct fb_info *info)
>  
>  static int clps7111fb_blank(int blank, struct fb_info *info)
>  {
> -    	if (blank) {
> -		if (machine_is_edb7211()) {
> -			/* Turn off the LCD backlight. */
> -			clps_writeb(clps_readb(PDDR) & ~EDB_PD3_LCDBL, PDDR);
> -
> -			/* Disable LCD controller. */
> -			clps_writel(clps_readl(SYSCON1) & ~SYSCON1_LCDEN, 
> -					SYSCON1);
> -		}
> -	} else {
> -		if (machine_is_edb7211()) {
> -			/* Enable LCD controller. */
> -			clps_writel(clps_readl(SYSCON1) | SYSCON1_LCDEN,
> -					SYSCON1);
> -
> -			/* Turn on the LCD backlight. */
> -			clps_writeb(clps_readb(PDDR) | EDB_PD3_LCDBL, PDDR);
> -		}
> -	}
> +	/* Enable/Disable LCD controller. */
> +    	if (blank)
> +		clps_writel(clps_readl(SYSCON1) & ~SYSCON1_LCDEN, SYSCON1);

I fixed up spaces-before-tabs on the line above when I applied the patch.


-Olof



More information about the linux-arm-kernel mailing list