]> git.baikalelectronics.ru Git - kernel.git/commitdiff
HID: wacom: add three styli to wacom_intuos_get_tool_type
authorPing Cheng <pinglinux@gmail.com>
Wed, 28 Sep 2022 20:49:29 +0000 (13:49 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 May 2023 11:44:08 +0000 (12:44 +0100)
commit db99f4499e98412240776128d71ab96bc15febb6 upstream.

We forgot to add the 3D pen ID a year ago. There are two new pro pen
IDs to be added.

Signed-off-by: Ping Cheng <ping.cheng@wacom.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hid/wacom_wac.c

index 6fbdffaadb9b0dcbf196c1f9400c0fb2e88b167f..099f7cccc3a7a69d1936cb565e986042bbf50f04 100644 (file)
@@ -713,11 +713,14 @@ static int wacom_intuos_get_tool_type(int tool_id)
        case 0x802: /* Intuos4/5 13HD/24HD General Pen */
        case 0x8e2: /* IntuosHT2 pen */
        case 0x022:
+       case 0x200: /* Pro Pen 3 */
+       case 0x04200: /* Pro Pen 3 */
        case 0x10842: /* MobileStudio Pro Pro Pen slim */
        case 0x14802: /* Intuos4/5 13HD/24HD Classic Pen */
        case 0x16802: /* Cintiq 13HD Pro Pen */
        case 0x18802: /* DTH2242 Pen */
        case 0x10802: /* Intuos4/5 13HD/24HD General Pen */
+       case 0x80842: /* Intuos Pro and Cintiq Pro 3D Pen */
                tool_type = BTN_TOOL_PEN;
                break;