aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPing Cheng <pinglinux@gmail.com>2011-10-05 02:49:42 -0400
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2011-10-05 03:26:00 -0400
commitf4fa9a6d80a61e5ae01e41262ff8b913deb92378 (patch)
treed6565bf20210ef1d3787b14ab5e148bce55dccb4
parentf01536e3d68bacaf827325b716c743c542d20b64 (diff)
Input: wacom - lower the LED luminance
The LED luminance level is normally lower when no button is pressed. Reviewed-by: Eduard Hasenleithner <eduard@hasenleithner.at> Tested-by: Eduard Hasenleithner <eduard@hasenleithner.at> Signed-off-by: Ping Cheng <pingc@wacom.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
-rw-r--r--Documentation/ABI/testing/sysfs-driver-wacom3
-rw-r--r--drivers/input/tablet/wacom_sys.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/Documentation/ABI/testing/sysfs-driver-wacom b/Documentation/ABI/testing/sysfs-driver-wacom
index dfe1d460cf54..b1d5c17dd67f 100644
--- a/Documentation/ABI/testing/sysfs-driver-wacom
+++ b/Documentation/ABI/testing/sysfs-driver-wacom
@@ -25,7 +25,8 @@ Contact: linux-input@vger.kernel.org
25Description: 25Description:
26 Writing to this file sets the status LED luminance (0..127) 26 Writing to this file sets the status LED luminance (0..127)
27 when the stylus does not touch the tablet surface, and no 27 when the stylus does not touch the tablet surface, and no
28 button is pressed on the stylus. 28 button is pressed on the stylus. This luminance level is
29 normally lower than the level when a button is pressed.
29 30
30What: /sys/bus/usb/devices/<busnum>-<devnum>:<cfg>.<intf>/wacom_led/status1_luminance 31What: /sys/bus/usb/devices/<busnum>-<devnum>:<cfg>.<intf>/wacom_led/status1_luminance
31Date: August 2011 32Date: August 2011
diff --git a/drivers/input/tablet/wacom_sys.c b/drivers/input/tablet/wacom_sys.c
index 0eccf57df5cd..4f5e62a1621d 100644
--- a/drivers/input/tablet/wacom_sys.c
+++ b/drivers/input/tablet/wacom_sys.c
@@ -678,7 +678,7 @@ static int wacom_initialize_leds(struct wacom *wacom)
678 678
679 /* Initialize default values */ 679 /* Initialize default values */
680 wacom->led.select = 0; 680 wacom->led.select = 0;
681 wacom->led.llv = 30; 681 wacom->led.llv = 10;
682 wacom->led.hlv = 20; 682 wacom->led.hlv = 20;
683 wacom->led.img_lum = 10; 683 wacom->led.img_lum = 10;
684 wacom_led_control(wacom); 684 wacom_led_control(wacom);