diff options
| author | Nam Cao <[email protected]> | 2025-02-05 10:46:25 +0000 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2025-02-18 10:19:06 +0000 |
| commit | 58ac3c93306ec588a6dbb8d3e02ac1109b32df6b (patch) | |
| tree | f7e165ff36e993ba43f509e61241c6fda12efd9c /drivers/gpu/drm/msm/msm_io_utils.c | |
| parent | drm/i915/request: Switch to use hrtimer_setup() (diff) | |
| download | kernel-58ac3c93306ec588a6dbb8d3e02ac1109b32df6b.tar.gz kernel-58ac3c93306ec588a6dbb8d3e02ac1109b32df6b.zip | |
drm/msm: 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 <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Acked-by: Zack Rusin <[email protected]>
Link: https://lore.kernel.org/all/2689e1ad4105f415ce8cd9e426873d9ac479dc36.1738746904.git.namcao@linutronix.de
Diffstat (limited to 'drivers/gpu/drm/msm/msm_io_utils.c')
| -rw-r--r-- | drivers/gpu/drm/msm/msm_io_utils.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/msm/msm_io_utils.c b/drivers/gpu/drm/msm/msm_io_utils.c index afedd61c3e28..a6efe1eac271 100644 --- a/drivers/gpu/drm/msm/msm_io_utils.c +++ b/drivers/gpu/drm/msm/msm_io_utils.c @@ -135,8 +135,7 @@ void msm_hrtimer_work_init(struct msm_hrtimer_work *work, clockid_t clock_id, enum hrtimer_mode mode) { - hrtimer_init(&work->timer, clock_id, mode); - work->timer.function = msm_hrtimer_worktimer; + hrtimer_setup(&work->timer, msm_hrtimer_worktimer, clock_id, mode); work->worker = worker; kthread_init_work(&work->work, fn); } |
