Skip to content

Commit fd777c3

Browse files
Loic Poulainnashif
authored andcommitted
drivers: video: sw_generator: Fix missing parameter
k_work_cancel_delayable_sync requires a second parameter for state synchronization. Signed-off-by: Loic Poulain <[email protected]>
1 parent 61b85b6 commit fd777c3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/video/video_sw_generator.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ struct video_sw_generator_data {
1616
struct k_fifo fifo_in;
1717
struct k_fifo fifo_out;
1818
struct k_work_delayable buf_work;
19+
struct k_work_sync work_sync;
1920
int pattern;
2021
bool ctrl_hflip;
2122
bool ctrl_vflip;
@@ -63,7 +64,7 @@ static int video_sw_generator_stream_stop(const struct device *dev)
6364
{
6465
struct video_sw_generator_data *data = dev->data;
6566

66-
k_work_cancel_delayable_sync(&data->buf_work);
67+
k_work_cancel_delayable_sync(&data->buf_work, &data->work_sync);
6768

6869
return 0;
6970
}

0 commit comments

Comments
 (0)