Skip to content

Commit

Permalink
drivers: video: s6e8aa0: Allow max brightness at 255
Browse files Browse the repository at this point in the history
  • Loading branch information
neobuddy89 committed Apr 8, 2013
1 parent 42e95ce commit 2a6043b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/video/samsung/s3cfb_s6e8aa0.c
Expand Up @@ -386,7 +386,7 @@ static int get_backlight_level_from_brightness(int brightness)
case 250 ... 254:
backlightlevel = GAMMA_250CD;
break;
case 255:
case 255 ... 299:
backlightlevel = GAMMA_300CD;
break;
default:
Expand Down Expand Up @@ -897,9 +897,6 @@ static int update_brightness(struct lcd_info *lcd, u8 force)

brightness = lcd->bd->props.brightness;

if (unlikely(!lcd->auto_brightness && brightness > 250))
brightness = 250;

lcd->bl = get_backlight_level_from_brightness(brightness);

if ((force) || ((lcd->ldi_enable) && (lcd->current_bl != lcd->bl))) {
Expand Down

0 comments on commit 2a6043b

Please sign in to comment.