HID: wacom: Use half of brightness for low state
authorPrzemo Firszt <przemo@firszt.eu>
Tue, 31 Jul 2012 17:27:55 +0000 (18:27 +0100)
committerJiri Kosina <jkosina@suse.cz>
Wed, 15 Aug 2012 08:29:11 +0000 (10:29 +0200)
commit530a76c14f40012354074a02254b41cb171e122f
tree6cfaea8b7afdecf7f5b0f15ef091b67a328733e4
parente8ff13b0bf88b5e696323a1eec877783d965b3c6
HID: wacom: Use half of brightness for low state

Intuos4 WL leds have 2 states: high and low. With no activity tablet
uses low state; using pen triggers high state. Both can be set
independently, but it would require setting another led device to
control them separately. This patch uses the brightness set through leds
subsytem as high and half of that value as low.

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
Acked-by: Ping Cheng <pingc@wacom.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-wacom.c