HID: wacom: add new MobileStudio Pro 13 support
diff mbox series

Message ID 1567629803-12451-1-git-send-email-ping.cheng@wacom.com
State New
Delegated to: Jiri Kosina
Headers show
Series
  • HID: wacom: add new MobileStudio Pro 13 support
Related show

Commit Message

Ping Cheng Sept. 4, 2019, 8:43 p.m. UTC
wacom_wac_pad_event is the only routine we need to update.

Signed-off-by: Ping Cheng <ping.cheng@wacom.com>

---
Patch is based on Jiri's for-5.4/wacom branch
---
 drivers/hid/wacom_wac.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Jiri Kosina Sept. 5, 2019, 1:02 p.m. UTC | #1
On Wed, 4 Sep 2019, Ping Cheng wrote:

> wacom_wac_pad_event is the only routine we need to update.
> 
> Signed-off-by: Ping Cheng <ping.cheng@wacom.com>
> 
> ---
> Patch is based on Jiri's for-5.4/wacom branch

Applied to that branch now. Thanks,

Patch
diff mbox series

diff --git a/drivers/hid/wacom_wac.c b/drivers/hid/wacom_wac.c
index 6b739c1..85a3082 100644
--- a/drivers/hid/wacom_wac.c
+++ b/drivers/hid/wacom_wac.c
@@ -2093,14 +2093,14 @@  static void wacom_wac_pad_event(struct hid_device *hdev, struct hid_field *field
 		    (hdev->product == 0x34d || hdev->product == 0x34e ||  /* MobileStudio Pro */
 		     hdev->product == 0x357 || hdev->product == 0x358 ||  /* Intuos Pro 2 */
 		     hdev->product == 0x392 ||				  /* Intuos Pro 2 */
-		     hdev->product == 0x399)) {				  /* MobileStudio Pro */
+		     hdev->product == 0x398 || hdev->product == 0x399)) { /* MobileStudio Pro */
 			value = (field->logical_maximum - value);
 
 			if (hdev->product == 0x357 || hdev->product == 0x358 ||
 			    hdev->product == 0x392)
 				value = wacom_offset_rotation(input, usage, value, 3, 16);
 			else if (hdev->product == 0x34d || hdev->product == 0x34e ||
-				 hdev->product == 0x399)
+				 hdev->product == 0x398 || hdev->product == 0x399)
 				value = wacom_offset_rotation(input, usage, value, 1, 2);
 		}
 		else {