diff options
author | Nam Cao <namcao@linutronix.de> | 2025-02-05 11:43:23 +0100 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2025-02-18 10:35:44 +0100 |
commit | 96b2fb3e6d146ab0b286101ddea6ad0cca8335c8 (patch) | |
tree | c2b5565990615ff947db8bae008b6b4e51d571ec | |
parent | efcb2d32a8f5afb4173a868a7616db1718641420 (diff) |
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
-rw-r--r-- | net/mac802154/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/mac802154/main.c b/net/mac802154/main.c index 21b7c3b280b4..ea1efef3572a 100644 --- a/net/mac802154/main.c +++ b/net/mac802154/main.c @@ -213,8 +213,8 @@ int ieee802154_register_hw(struct ieee802154_hw *hw) goto out_wq; } - hrtimer_init(&local->ifs_timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); - local->ifs_timer.function = ieee802154_xmit_ifs_timer; + hrtimer_setup(&local->ifs_timer, ieee802154_xmit_ifs_timer, CLOCK_MONOTONIC, + HRTIMER_MODE_REL); wpan_phy_set_dev(local->phy, local->hw.parent); |