소스 검색

HID: wacom: fix Intuos wireless report id issue

Intuos Pen in wireless mode does not have the same report id (2) as
when it is in USB mode (17).

This patch also moves WIRELESS next to REMOTE in type enum so we
can group devices with similar features easily.

Reported-by: Dale Brewe <dlbrewe@hotmail.com>
Tested-by: Dale Brewe <dlbrewe@hotmail.com>
Signed-off-by: Ping Cheng <pingc@wacom.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Ping Cheng 10 년 전
부모
커밋
7adb91bd78
3개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 1
      drivers/hid/wacom_sys.c
  2. 0 1
      drivers/hid/wacom_wac.c
  3. 1 1
      drivers/hid/wacom_wac.h

+ 1 - 1
drivers/hid/wacom_sys.c

@@ -432,7 +432,7 @@ static int wacom_query_tablet_data(struct hid_device *hdev,
 			return wacom_set_device_mode(hdev, 2, 2, 2);
 			return wacom_set_device_mode(hdev, 2, 2, 2);
 		}
 		}
 	} else if (features->device_type & WACOM_DEVICETYPE_PEN) {
 	} else if (features->device_type & WACOM_DEVICETYPE_PEN) {
-		if (features->type <= BAMBOO_PT && features->type != WIRELESS) {
+		if (features->type <= BAMBOO_PT) {
 			return wacom_set_device_mode(hdev, 2, 2, 2);
 			return wacom_set_device_mode(hdev, 2, 2, 2);
 		}
 		}
 	}
 	}

+ 0 - 1
drivers/hid/wacom_wac.c

@@ -2066,7 +2066,6 @@ static int wacom_bpt_irq(struct wacom_wac *wacom, size_t len)
 	struct wacom_features *features = &wacom->features;
 	struct wacom_features *features = &wacom->features;
 
 
 	if ((features->type == INTUOSHT2) &&
 	if ((features->type == INTUOSHT2) &&
-	    (wacom->data[0] == WACOM_REPORT_INTUOS_PEN) &&
 	    (features->device_type & WACOM_DEVICETYPE_PEN))
 	    (features->device_type & WACOM_DEVICETYPE_PEN))
 		return wacom_intuos_irq(wacom);
 		return wacom_intuos_irq(wacom);
 	else if (len == WACOM_PKGLEN_BBTOUCH)
 	else if (len == WACOM_PKGLEN_BBTOUCH)

+ 1 - 1
drivers/hid/wacom_wac.h

@@ -129,7 +129,6 @@ enum {
 	WACOM_BEE,
 	WACOM_BEE,
 	WACOM_13HD,
 	WACOM_13HD,
 	WACOM_MO,
 	WACOM_MO,
-	WIRELESS,
 	BAMBOO_PEN,
 	BAMBOO_PEN,
 	INTUOSHT,
 	INTUOSHT,
 	INTUOSHT2,
 	INTUOSHT2,
@@ -138,6 +137,7 @@ enum {
 	WACOM_24HDT,
 	WACOM_24HDT,
 	WACOM_27QHDT,
 	WACOM_27QHDT,
 	BAMBOO_PAD,
 	BAMBOO_PAD,
+	WIRELESS,
 	REMOTE,
 	REMOTE,
 	TABLETPC,   /* add new TPC below */
 	TABLETPC,   /* add new TPC below */
 	TABLETPCE,
 	TABLETPCE,