]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: ethernet: hisilicon: Switch to use hrtimer_setup()
authorNam Cao <namcao@linutronix.de>
Wed, 5 Feb 2025 10:43:31 +0000 (11:43 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 18 Feb 2025 09:35:45 +0000 (10:35 +0100)
commit964177da435cc466c4ff4774f18e37aa03fafe4a
tree8dd2c3355e5d19a42e901978d7c210124bcb5151
parent66a3898a203d7a62967812d97629ee402a6f2221
net: ethernet: hisilicon: 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/11f5140e157cc0cd02a715f531217b021743aa71.1738746872.git.namcao@linutronix.de
drivers/net/ethernet/hisilicon/hip04_eth.c