Skip to content
Commit 731241f8 authored by Yong Cong Sin's avatar Yong Cong Sin Committed by Anas Nashif
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 6964f2b1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment