mirror of
https://github.com/RinCat/RTL88x2BU-Linux-Driver.git
synced 2025-07-01 07:34:17 +00:00
Linux 6.16 compat: more timers name change
Signed-off-by: Rin Cat (鈴猫) <rincat@rincat.dev>
This commit is contained in:
parent
fcf8bf2936
commit
77a82dbac7
@ -357,7 +357,9 @@ static inline void timer_hdl(struct timer_list *in_timer)
|
|||||||
static inline void timer_hdl(unsigned long cntx)
|
static inline void timer_hdl(unsigned long cntx)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 0))
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 16, 0))
|
||||||
|
_timer *ptimer = timer_container_of(ptimer, in_timer, timer);
|
||||||
|
#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 0))
|
||||||
_timer *ptimer = from_timer(ptimer, in_timer, timer);
|
_timer *ptimer = from_timer(ptimer, in_timer, timer);
|
||||||
#else
|
#else
|
||||||
_timer *ptimer = (_timer *)cntx;
|
_timer *ptimer = (_timer *)cntx;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user