[PATCH] media: rockchip: rkcif: convert timeout to secs_to_jiffies()
From: Amin Gattout
Date: Fri Sep 18 2026 - 09:07:47 EST
Use secs_to_jiffies() to simplify the code.
Signed-off-by: Amin Gattout <amin.gattout@xxxxxxxxx>
---
drivers/media/platform/rockchip/rkcif/rkcif-stream.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/platform/rockchip/rkcif/rkcif-stream.c b/drivers/media/platform/rockchip/rkcif/rkcif-stream.c
index 3130d420ad55..f82eaf9a37d1 100644
--- a/drivers/media/platform/rockchip/rkcif/rkcif-stream.c
+++ b/drivers/media/platform/rockchip/rkcif/rkcif-stream.c
@@ -314,7 +314,7 @@ static void rkcif_stream_stop_streaming(struct vb2_queue *queue)
stream->stopping = true;
ret = wait_event_timeout(stream->wq_stopped, !stream->stopping,
- msecs_to_jiffies(1000));
+ secs_to_jiffies(1));
if (!ret && stream->stop_streaming)
stream->stop_streaming(stream);
---
base-commit: 238650ef6c7c7cca08e032527329424c9fbd70e5
change-id: 20260918-rkcif-secs-to-jiffies-1b98a96465f7
Best regards,
--
Amin Gattout <amin.gattout@xxxxxxxxx>