Skip to content
Commit 3d61857d authored by Yong Cong Sin's avatar Yong Cong Sin Committed by Christopher Friedt
Browse files

kernel: workq: Fix type errors in delayable work handlers



A common pattern here was to take the work item as the subfield of a
containing object. But the contained field is not a k_work, it's a
k_work_delayable.

Things were working only because the work field was first, so the
pointers had the same value. Do things right and fix things to
produce correct code if/when that field ever moves within delayable.

Signed-off-by: default avatarYong Cong Sin <yongcong.sin@gmail.com>
parent 0d70ee60
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment