Description: Support kernel 6.15
    Since linux 6.1.84, timer_delete_sync was introduced
    and del_timer_sync should not be used.

    Since 6.15, del_timer_sync wrapper was removed.
Author: Kentaro Hayashi <kenhys@xdump.org>
Origin: upstream, https://github.com/DIGImend/digimend-kernel-drivers/pull/714
Bug-Ubuntu: https://bugs.launchpad.net/bugs/2133753
Last-Update: 2025-12-02
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/hid-uclogic-core.c
+++ b/hid-uclogic-core.c
@@ -488,6 +488,10 @@
 	return 0;
 }
 
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 84)
+#define del_timer_sync timer_delete_sync
+#endif
+
 static void uclogic_remove(struct hid_device *hdev)
 {
 	struct uclogic_drvdata *drvdata = hid_get_drvdata(hdev);
