mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-04 20:19:47 +08:00
mac802154: Switch to use hrtimer_setup()
hrtimer_setup() takes the callback function pointer as argument and initializes the timer completely. Replace hrtimer_init() and the open coded initialization of hrtimer::function with the new setup mechanism. Patch was created by using Coccinelle. Signed-off-by: Nam Cao <namcao@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/all/5a89d86092d11a1d0cdfdfaa33990aaf7f1eec87.1738746872.git.namcao@linutronix.de
This commit is contained in:
parent
efcb2d32a8
commit
96b2fb3e6d
@ -213,8 +213,8 @@ int ieee802154_register_hw(struct ieee802154_hw *hw)
|
|||||||
goto out_wq;
|
goto out_wq;
|
||||||
}
|
}
|
||||||
|
|
||||||
hrtimer_init(&local->ifs_timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
|
hrtimer_setup(&local->ifs_timer, ieee802154_xmit_ifs_timer, CLOCK_MONOTONIC,
|
||||||
local->ifs_timer.function = ieee802154_xmit_ifs_timer;
|
HRTIMER_MODE_REL);
|
||||||
|
|
||||||
wpan_phy_set_dev(local->phy, local->hw.parent);
|
wpan_phy_set_dev(local->phy, local->hw.parent);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user