]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit64691959401601a1514c39cf0131533a4be53c12
treeadf1e0f44cc2d67ee54bf1c1634086025058ad7f
parent166973e506231c496b4427760bcb5a9860422850
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