R2 internal Wifi/BT (MT6625L) - Kernel 4.14.x/4.16

(Frank W.) #41

can anybody explain me, how from_timer-function works and which-params (1st+3rd) are needed?

i found some patches like https://www.spinics.net/lists/raid/msg59618.html

but the params are not clear…first can be the same var like assigned to, second is the timer_list and the last??


#define from_timer(var, callback_timer, timer_fieldname) \
	container_of(callback_timer, typeof(*var), timer_fieldname)

here is the way i try to port:

(Frank W.) #42

having now problems with the from_timer-macro, have anyone an idea?