drivers/video: fix if video node do not exist on host of sim env, video driver init fail

Signed-off-by: yuexinyi <yuexinyi@xiaomi.com>
This commit is contained in:
yuexinyi 2023-07-13 19:37:58 +08:00 committed by Xiang Xiao
parent bdf82d2087
commit 4f0a8dc391

View File

@ -179,7 +179,7 @@ static uint32_t imgdata_fmt_to_v4l2(uint32_t pixelformat)
static bool sim_camera_is_available(struct imgsensor_s *sensor)
{
return host_video_is_available(CONFIG_HOST_VIDEO_DEV_PATH);
return true;
}
static int sim_camera_init(struct imgsensor_s *sensor)