]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
pwm: gpio: Switch to use hrtimer_setup()
authorNam Cao <namcao@linutronix.de>
Wed, 5 Feb 2025 10:46:31 +0000 (11:46 +0100)
committerUwe Kleine-König <ukleinek@kernel.org>
Fri, 7 Feb 2025 15:41:37 +0000 (16:41 +0100)
commite320a24059f8fd06c60a5cc295bcc53eff759d30
tree18774fa719574b73c12cb28c8efece25c0efb174
parentc98e66144b7d07ee9a3ca8241123b628a8ac0288
pwm: gpio: 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.

Acked-by: Zack Rusin <zack.rusin@broadcom.com>
Signed-off-by: Nam Cao <namcao@linutronix.de>
Link: https://lore.kernel.org/r/7b7115da84372a49e36a0ac1a5ce553129c3ce0b.1738746904.git.namcao@linutronix.de
Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>
drivers/pwm/pwm-gpio.c