]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: Switch to use hrtimer_setup()
authorNam Cao <namcao@linutronix.de>
Wed, 5 Feb 2025 10:46:15 +0000 (11:46 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 18 Feb 2025 10:19:05 +0000 (11:19 +0100)
commitc69da1735f19d93c63fef5d38d9ff3b1c56587da
tree74d9db277419fb0fd8110bd85c6d7ff80aaa53c1
parenta9d0ac739658f9a7c27d3430475aa3a00948ab1f
iio: 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: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Acked-by: Zack Rusin <zack.rusin@broadcom.com>
Link: https://lore.kernel.org/all/570792e31b28a94a511c19c6789f2171a6745685.1738746904.git.namcao@linutronix.de
drivers/iio/adc/ti-tsc2046.c
drivers/iio/trigger/iio-trig-hrtimer.c