]> Git Repo - linux.git/commit
eeepc-laptop: report brightness control events via the input layer
authorDarren Salt <[email protected]>
Mon, 27 Apr 2009 07:23:38 +0000 (09:23 +0200)
committerLen Brown <[email protected]>
Thu, 14 May 2009 15:19:32 +0000 (11:19 -0400)
commit64b86b6583db832b28bb54575e32b9e2a1a7d84f
tree161e97f7d1cd6602cf6282d3f3960dd3f7505589
parentfbc97e4c5c31ea198f912196b1379d7493362800
eeepc-laptop: report brightness control events via the input layer

This maps the brightness control events to one of two keys, either
KEY_BRIGHTNESSDOWN or KEY_BRIGHTNESSUP, as needed.

Some mapping has to be done due to the fact that the BIOS reports them as
<base value> + <current brightness index>; the selection is done according to
the sign of the change in brightness (if this is 0, no keypress is reported).

(Ref. http://lists.alioth.debian.org/pipermail/debian-eeepc-devel/2009-April/002001.html)

Signed-off-by: Darren Salt <[email protected]>
Signed-off-by: Corentin Chary <[email protected]>
Signed-off-by: Len Brown <[email protected]>
drivers/platform/x86/eeepc-laptop.c
This page took 0.054722 seconds and 4 git commands to generate.