File tree Expand file tree Collapse file tree 1 file changed +6
-13
lines changed Expand file tree Collapse file tree 1 file changed +6
-13
lines changed Original file line number Diff line number Diff line change @@ -615,12 +615,12 @@ static int imx335_set_ctrl(struct v4l2_ctrl *ctrl)
615615 imx335 -> vblank ,
616616 imx335 -> vblank + imx335 -> cur_mode -> height );
617617
618- __v4l2_ctrl_modify_range (imx335 -> exp_ctrl ,
619- IMX335_EXPOSURE_MIN ,
620- imx335 -> vblank +
621- imx335 -> cur_mode -> height -
622- IMX335_EXPOSURE_OFFSET ,
623- 1 , IMX335_EXPOSURE_DEFAULT );
618+ return __v4l2_ctrl_modify_range (imx335 -> exp_ctrl ,
619+ IMX335_EXPOSURE_MIN ,
620+ imx335 -> vblank +
621+ imx335 -> cur_mode -> height -
622+ IMX335_EXPOSURE_OFFSET ,
623+ 1 , IMX335_EXPOSURE_DEFAULT );
624624 }
625625
626626 /*
@@ -631,13 +631,6 @@ static int imx335_set_ctrl(struct v4l2_ctrl *ctrl)
631631 return 0 ;
632632
633633 switch (ctrl -> id ) {
634- case V4L2_CID_VBLANK :
635- exposure = imx335 -> exp_ctrl -> val ;
636- analog_gain = imx335 -> again_ctrl -> val ;
637-
638- ret = imx335_update_exp_gain (imx335 , exposure , analog_gain );
639-
640- break ;
641634 case V4L2_CID_EXPOSURE :
642635 exposure = ctrl -> val ;
643636 analog_gain = imx335 -> again_ctrl -> val ;
You can’t perform that action at this time.
0 commit comments