eeepc-laptop: report brightness control events via the input layer
authorDarren Salt <linux@youmustbejoking.demon.co.uk>
Mon, 27 Apr 2009 07:23:38 +0000 (09:23 +0200)
committerLen Brown <len.brown@intel.com>
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 <linux@youmustbejoking.demon.co.uk>
Signed-off-by: Corentin Chary <corentincj@iksaif.net>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/platform/x86/eeepc-laptop.c