]> git.baikalelectronics.ru Git - kernel.git/commit
gma500,cdv: Fix the brightness base
authorAlan Cox <alan@linux.intel.com>
Mon, 16 Jul 2012 16:54:03 +0000 (17:54 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 16 Jul 2012 16:20:33 +0000 (09:20 -0700)
commit5723115121fedbec5f4d1c04dddc9e91cbfa4ed6
treeadf1e0f44cc2d67ee54bf1c1634086025058ad7f
parent823041a33dfdf629a00680e0d71c72304a0f5e9b
gma500,cdv: Fix the brightness base

Some desktop environments carefully save and restore the brightness
settings from the previous boot.  Unfortunately they don't all check to
see if the range has changed.  The end result is that they restore a
brightness of 100/lots not 100/100.

As the old driver and the non-free GMA36xx driver both use 0-100 we thus
need to go back doing the same thing to avoid users getting a mysterious
black screen after boot.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/gpu/drm/gma500/cdv_device.c