blob: 42a0932cb86bb71ffc9592021018090d7c2ee990 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
#ifndef HID_MAGICMOUSE_KERNEL_COMPAT_H
#define HID_MAGICMOUSE_KERNEL_COMPAT_H
#include <linux/version.h>
#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 15, 0)
#ifndef timer_delete_sync
#define timer_delete_sync(timer) del_timer_sync(timer)
#endif
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 16, 0)
#ifndef timer_container_of
#define timer_container_of(var, timer, member) \
from_timer(var, timer, member)
#endif
#endif
#endif
|