mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
HID: wacom: leds: Don't try to control the EKR's read-only LEDs
Commita50aac7193introduces 'led.groups' and adds EKR support for these groups. However, unlike the other devices with LEDs, the EKR's LEDs are read-only and we shouldn't attempt to control them in wacom_led_control(). See bug: https://sourceforge.net/p/linuxwacom/bugs/342/ Fixes:a50aac7193("HID: wacom: leds: dynamically allocate LED groups") Cc: stable <[email protected]> # 4.9 Signed-off-by: Aaron Armstrong Skomra <[email protected]> Reviewed-by: Jason Gerecke <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
This commit is contained in:
parent
ce06760ba4
commit
74aebed6dc
1 changed files with 3 additions and 0 deletions
|
|
@ -766,6 +766,9 @@ static int wacom_led_control(struct wacom *wacom)
|
|||
if (!wacom->led.groups)
|
||||
return -ENOTSUPP;
|
||||
|
||||
if (wacom->wacom_wac.features.type == REMOTE)
|
||||
return -ENOTSUPP;
|
||||
|
||||
if (wacom->wacom_wac.pid) { /* wireless connected */
|
||||
report_id = WAC_CMD_WL_LED_CONTROL;
|
||||
buf_size = 13;
|
||||
|
|
|
|||
Loading…
Reference in a new issue