]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
leds: trigger: pattern: Switch to use hrtimer_setup()
authorNam Cao <namcao@linutronix.de>
Wed, 5 Feb 2025 10:46:13 +0000 (11:46 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 18 Feb 2025 10:19:05 +0000 (11:19 +0100)
commita9d0ac739658f9a7c27d3430475aa3a00948ab1f
treed00e7bc657ec07e6cb17e3cea05e832dc85127bf
parentc158a29c5c5ba97c0549d3390f50d441950bbce7
leds: trigger: pattern: 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>
Acked-by: Zack Rusin <zack.rusin@broadcom.com>
Link: https://lore.kernel.org/all/76fa1cc9777a99a48f49f949abadc1c10af1bc64.1738746904.git.namcao@linutronix.de
drivers/leds/trigger/ledtrig-pattern.c