Skip to content

Commit ddc0536

Browse files
Caesar-githubrkhuangtao
authored andcommitted
media: soc_camera/rockchip: Fix the build error
As enable the releated config, hit the below error: drivers/media/i2c/soc_camera/rockchip/adv_camera_module.c:937:34: error: assignment to expression with array type timings->exposure_valid_frame = ... and drivers/media/i2c/soc_camera/rockchip/tc_camera_module.c:963:34: error: assignment to expression with array type timings->exposure_valid_frame = .... Change-Id: I4381cc8aa00bb6a968c01d7537a8942b5715fa5c Signed-off-by: Caesar Wang <wxt@rock-chips.com>
1 parent 5060d58 commit ddc0536

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/media/i2c/soc_camera/rockchip/adv_camera_module.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -934,7 +934,7 @@ long adv_camera_module_ioctl(struct v4l2_subdev *sd,
934934
adv_timings.fine_integration_time_min;
935935

936936
if (cam_mod->custom.g_exposure_valid_frame)
937-
timings->exposure_valid_frame =
937+
timings->exposure_valid_frame[0] =
938938
cam_mod->custom.g_exposure_valid_frame(cam_mod);
939939
if (cam_mod->exp_config.exp_time)
940940
timings->exp_time = cam_mod->exp_config.exp_time;

drivers/media/i2c/soc_camera/rockchip/tc_camera_module.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -960,7 +960,7 @@ long tc_camera_module_ioctl(struct v4l2_subdev *sd,
960960
tc_timings.fine_integration_time_min;
961961

962962
if (cam_mod->custom.g_exposure_valid_frame)
963-
timings->exposure_valid_frame =
963+
timings->exposure_valid_frame[0] =
964964
cam_mod->custom.g_exposure_valid_frame(cam_mod);
965965
if (cam_mod->exp_config.exp_time)
966966
timings->exp_time = cam_mod->exp_config.exp_time;

0 commit comments

Comments
 (0)