mirror of
https://github.com/cilynx/rtl88x2bu
synced 2025-08-22 02:01:55 +00:00
Rename from_timer to timer_container_of
Linux commit 41cb08555c4164996d67c78b3bf1c658075b75f1 introduced that renaming. Thus, we have to follow along.
This commit is contained in:
parent
d99f4dcf07
commit
643a994646
@ -353,7 +353,9 @@ static inline void timer_hdl(struct timer_list *in_timer)
|
||||
static inline void timer_hdl(unsigned long cntx)
|
||||
#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);
|
||||
#else
|
||||
_timer *ptimer = (_timer *)cntx;
|
||||
|
Loading…
x
Reference in New Issue
Block a user