From: elliot <elliot.kohlmyer@gmail.com>
Date: Tue, 14 May 2024 14:27:28 -0400
Subject: HID: uclogic: Added support for XP-Pen Deco M

Description: This is the same as the Deco L, with the only difference (as far as I know) being the physical size.
Author: Elliot Kohlmyer <tommyteam320@gmail.com>
Forwarded: not-needed
Origin: https://github.com/DIGImend/digimend-kernel-drivers/commit/1d5f0da5bf68aed691cb26ce0f56a278c3cc4665

Signed-off-by: Elliot Kohlmyer <tommyteam320@gmail.com>
Signed-off-by: Kentaro Hayashi <kenhys@xdump.org>
---
 hid-ids.h            | 1 +
 hid-uclogic-core.c   | 2 ++
 hid-uclogic-params.c | 2 ++
 3 files changed, 5 insertions(+)

diff --git a/hid-ids.h b/hid-ids.h
index e4182c6..d90e1ab 100644
--- a/hid-ids.h
+++ b/hid-ids.h
@@ -65,6 +65,7 @@
 #define USB_DEVICE_ID_UGEE_XPPEN_TABLET_DECO01	0x0042
 #define USB_DEVICE_ID_UGEE_XPPEN_TABLET_DECO01_V2	0x0905
 #define USB_DEVICE_ID_UGEE_XPPEN_TABLET_DECO_L	0x0935
+#define USB_DEVICE_ID_UGEE_XPPEN_TABLET_DECO_M	0x0936
 #define USB_DEVICE_ID_UGEE_XPPEN_TABLET_DECO_PRO_MW	0x0934
 #define USB_DEVICE_ID_UGEE_XPPEN_TABLET_DECO_PRO_S	0x0909
 #define USB_DEVICE_ID_UGEE_XPPEN_TABLET_DECO_PRO_SW	0x0933
diff --git a/hid-uclogic-core.c b/hid-uclogic-core.c
index 6f8160f..e34584b 100644
--- a/hid-uclogic-core.c
+++ b/hid-uclogic-core.c
@@ -563,6 +563,8 @@ static const struct hid_device_id uclogic_devices[] = {
 				USB_DEVICE_ID_UGEE_XPPEN_TABLET_DECO01_V2) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_UGEE,
 				USB_DEVICE_ID_UGEE_XPPEN_TABLET_DECO_L) },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_UGEE,
+				USB_DEVICE_ID_UGEE_XPPEN_TABLET_DECO_M) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_UGEE,
 				USB_DEVICE_ID_UGEE_XPPEN_TABLET_DECO_PRO_MW),
 		.driver_data = UCLOGIC_MOUSE_FRAME_QUIRK | UCLOGIC_BATTERY_QUIRK },
diff --git a/hid-uclogic-params.c b/hid-uclogic-params.c
index 34b021e..60fe2eb 100644
--- a/hid-uclogic-params.c
+++ b/hid-uclogic-params.c
@@ -1808,6 +1808,8 @@ int uclogic_params_init(struct uclogic_params *params,
 		     USB_DEVICE_ID_UGEE_XPPEN_TABLET_DECO01_V2):
 	case VID_PID(USB_VENDOR_ID_UGEE,
 		     USB_DEVICE_ID_UGEE_XPPEN_TABLET_DECO_L):
+	case VID_PID(USB_VENDOR_ID_UGEE,
+		     USB_DEVICE_ID_UGEE_XPPEN_TABLET_DECO_M):
 	case VID_PID(USB_VENDOR_ID_UGEE,
 		     USB_DEVICE_ID_UGEE_XPPEN_TABLET_DECO_PRO_MW):
 	case VID_PID(USB_VENDOR_ID_UGEE,
