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)
615
615
imx335 -> vblank ,
616
616
imx335 -> vblank + imx335 -> cur_mode -> height );
617
617
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 );
624
624
}
625
625
626
626
/*
@@ -631,13 +631,6 @@ static int imx335_set_ctrl(struct v4l2_ctrl *ctrl)
631
631
return 0 ;
632
632
633
633
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 ;
641
634
case V4L2_CID_EXPOSURE :
642
635
exposure = ctrl -> val ;
643
636
analog_gain = imx335 -> again_ctrl -> val ;
You can’t perform that action at this time.
0 commit comments