backlight: Fix backlight limiting on spitz/corgi devices
authorPavel Machek <pavel@ucw.cz>
Fri, 6 Nov 2009 15:58:31 +0000 (15:58 +0000)
committerRichard Purdie <rpurdie@linux.intel.com>
Mon, 16 Nov 2009 11:50:41 +0000 (11:50 +0000)
commit716bdf1874647196ac16dd2a1ad359d88844795a
tree55a5a7797d655bfd487ee3297323ba22faee1a08
parent1e0fa6bd8c7468067f2e988c7a416dafd0651c34
backlight: Fix backlight limiting on spitz/corgi devices

On spitz (& similar) machines, if battery is running low, backlight
needs
to be limited to lower step.  Unfortunately, current code uses &= for
limiting, turning backlight off completely for some backlight settings.
Fix that.

Signed-off-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
drivers/video/backlight/corgi_lcd.c