From 8d1f4e969793109af30288c8911015fac1474226 Mon Sep 17 00:00:00 2001 From: shizhenghui Date: Thu, 1 Feb 2024 14:30:24 +0800 Subject: [PATCH] sim_camera: rename video to camera Signed-off-by: shizhenghui --- arch/sim/Kconfig | 8 ++++---- arch/sim/src/sim/sim_camera.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/sim/Kconfig b/arch/sim/Kconfig index 06b428974d..0b2d6c4e78 100644 --- a/arch/sim/Kconfig +++ b/arch/sim/Kconfig @@ -338,14 +338,14 @@ config SIM_OFFLOAD_BUFFER_NUMBYTES value. config SIM_CAMERA - bool "Simulated video support" + bool "Simulated camera support" depends on VIDEO default y if SIM_CAMERA choice - prompt "Simulated video device type" + prompt "Simulated camera device type" default SIM_CAMERA_V4L2 config SIM_CAMERA_V4L2 @@ -354,8 +354,8 @@ config SIM_CAMERA_V4L2 endchoice -config HOST_VIDEO_DEV_PATH - string "Host video device path" +config HOST_CAMERA_DEV_PATH + string "Host camera device path" default "/dev/video0" config SIM_CAMERA_DEV_PATH diff --git a/arch/sim/src/sim/sim_camera.c b/arch/sim/src/sim/sim_camera.c index 4818f25e52..eb81c8a284 100644 --- a/arch/sim/src/sim/sim_camera.c +++ b/arch/sim/src/sim/sim_camera.c @@ -233,7 +233,7 @@ static int sim_camera_data_init(struct imgdata_s *data) { sim_camera_priv_t *priv = (sim_camera_priv_t *)data; - priv->vdev = host_video_init(CONFIG_HOST_VIDEO_DEV_PATH); + priv->vdev = host_video_init(CONFIG_HOST_CAMERA_DEV_PATH); if (priv->vdev == NULL) { return -ENODEV;