From: lyx Date: Thu, 2 Jun 2011 01:47:09 +0000 (-0700) Subject: a22 backlight: fix bug----bl shine when suspend X-Git-Tag: firefly_0821_release~10240 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b5e0c04a4b23cbad97899b83d5b768d7742dfa51;p=firefly-linux-kernel-4.4.55.git a22 backlight: fix bug----bl shine when suspend --- diff --git a/drivers/video/backlight/aw9364_bl.c b/drivers/video/backlight/aw9364_bl.c index 3884a16b2d24..35b05142020e 100755 --- a/drivers/video/backlight/aw9364_bl.c +++ b/drivers/video/backlight/aw9364_bl.c @@ -81,18 +81,18 @@ static int aw9364_backlight_set(struct backlight_device *bl, int brightness) gpio_direction_output(data->pin_en, GPIO_LOW); mdelay(3); } - - for(i=0; ipin_en, GPIO_LOW); - udelay(5); - gpio_direction_output(data->pin_en, GPIO_HIGH); - if(i==0) - udelay(50); - else - udelay(2); + else { + for(i=0; ipin_en, GPIO_LOW); + udelay(5); + gpio_direction_output(data->pin_en, GPIO_HIGH); + if(i==0) + udelay(50); + else + udelay(2); + } } - DBG("%s:current_bl=%d,bl=%d,num_clk_to=%d,num_clk_from=%d,num_clk=%d\n",__FUNCTION__, data->current_brightness,brightness,num_clk_to,num_clk_from,num_clk);