aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Documentation/ABI/testing/sysfs-driver-wacom17
-rw-r--r--drivers/input/tablet/wacom_sys.c5
2 files changed, 13 insertions, 9 deletions
diff --git a/Documentation/ABI/testing/sysfs-driver-wacom b/Documentation/ABI/testing/sysfs-driver-wacom
index 82d4df136444..0130d6683c14 100644
--- a/Documentation/ABI/testing/sysfs-driver-wacom
+++ b/Documentation/ABI/testing/sysfs-driver-wacom
@@ -15,9 +15,9 @@ Contact: linux-input@vger.kernel.org
15Description: 15Description:
16 Attribute group for control of the status LEDs and the OLEDs. 16 Attribute group for control of the status LEDs and the OLEDs.
17 This attribute group is only available for Intuos 4 M, L, 17 This attribute group is only available for Intuos 4 M, L,
18 and XL (with LEDs and OLEDs) and Cintiq 21UX2 (LEDs only). 18 and XL (with LEDs and OLEDs) and Cintiq 21UX2 and Cintiq 24HD
19 Therefore its presence implicitly signifies the presence of 19 (LEDs only). Therefore its presence implicitly signifies the
20 said LEDs and OLEDs on the tablet device. 20 presence of said LEDs and OLEDs on the tablet device.
21 21
22What: /sys/bus/usb/devices/<busnum>-<devnum>:<cfg>.<intf>/wacom_led/status0_luminance 22What: /sys/bus/usb/devices/<busnum>-<devnum>:<cfg>.<intf>/wacom_led/status0_luminance
23Date: August 2011 23Date: August 2011
@@ -41,16 +41,17 @@ Date: August 2011
41Contact: linux-input@vger.kernel.org 41Contact: linux-input@vger.kernel.org
42Description: 42Description:
43 Writing to this file sets which one of the four (for Intuos 4) 43 Writing to this file sets which one of the four (for Intuos 4)
44 or of the right four (for Cintiq 21UX2) status LEDs is active (0..3). 44 or of the right four (for Cintiq 21UX2 and Cintiq 24HD) status
45 The other three LEDs on the same side are always inactive. 45 LEDs is active (0..3). The other three LEDs on the same side are
46 always inactive.
46 47
47What: /sys/bus/usb/devices/<busnum>-<devnum>:<cfg>.<intf>/wacom_led/status_led1_select 48What: /sys/bus/usb/devices/<busnum>-<devnum>:<cfg>.<intf>/wacom_led/status_led1_select
48Date: September 2011 49Date: September 2011
49Contact: linux-input@vger.kernel.org 50Contact: linux-input@vger.kernel.org
50Description: 51Description:
51 Writing to this file sets which one of the left four (for Cintiq 21UX2) 52 Writing to this file sets which one of the left four (for Cintiq 21UX2
52 status LEDs is active (0..3). The other three LEDs on the left are always 53 and Cintiq 24HD) status LEDs is active (0..3). The other three LEDs on
53 inactive. 54 the left are always inactive.
54 55
55What: /sys/bus/usb/devices/<busnum>-<devnum>:<cfg>.<intf>/wacom_led/buttons_luminance 56What: /sys/bus/usb/devices/<busnum>-<devnum>:<cfg>.<intf>/wacom_led/buttons_luminance
56Date: August 2011 57Date: August 2011
diff --git a/drivers/input/tablet/wacom_sys.c b/drivers/input/tablet/wacom_sys.c
index 2fe21d1a18b7..7e63183a6c68 100644
--- a/drivers/input/tablet/wacom_sys.c
+++ b/drivers/input/tablet/wacom_sys.c
@@ -563,7 +563,8 @@ static int wacom_led_control(struct wacom *wacom)
563 if (!buf) 563 if (!buf)
564 return -ENOMEM; 564 return -ENOMEM;
565 565
566 if (wacom->wacom_wac.features.type == WACOM_21UX2) 566 if (wacom->wacom_wac.features.type == WACOM_21UX2 ||
567 wacom->wacom_wac.features.type == WACOM_24HD)
567 led = (wacom->led.select[1] << 4) | 0x40; 568 led = (wacom->led.select[1] << 4) | 0x40;
568 569
569 led |= wacom->led.select[0] | 0x4; 570 led |= wacom->led.select[0] | 0x4;
@@ -782,6 +783,7 @@ static int wacom_initialize_leds(struct wacom *wacom)
782 &intuos4_led_attr_group); 783 &intuos4_led_attr_group);
783 break; 784 break;
784 785
786 case WACOM_24HD:
785 case WACOM_21UX2: 787 case WACOM_21UX2:
786 wacom->led.select[0] = 0; 788 wacom->led.select[0] = 0;
787 wacom->led.select[1] = 0; 789 wacom->led.select[1] = 0;
@@ -816,6 +818,7 @@ static void wacom_destroy_leds(struct wacom *wacom)
816 &intuos4_led_attr_group); 818 &intuos4_led_attr_group);
817 break; 819 break;
818 820
821 case WACOM_24HD:
819 case WACOM_21UX2: 822 case WACOM_21UX2:
820 sysfs_remove_group(&wacom->intf->dev.kobj, 823 sysfs_remove_group(&wacom->intf->dev.kobj,
821 &cintiq_led_attr_group); 824 &cintiq_led_attr_group);