The exposure minimum and step are constant use the defines for this
instead of retrieving these from the exposure-control.
Signed-off-by: Hans de Goede <hansg@kernel.org>
Tested-by: Mehdi Djait <mehdi.djait@linux.intel.com> # Dell XPS 9315
Reviewed-by: Mehdi Djait <mehdi.djait@linux.intel.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
exposure_max = fmt->height + ctrl->val -
OV01A10_EXPOSURE_MAX_MARGIN;
__v4l2_ctrl_modify_range(ov01a10->exposure,
- ov01a10->exposure->minimum,
- exposure_max, ov01a10->exposure->step,
- exposure_max);
+ OV01A10_EXPOSURE_MIN, exposure_max,
+ OV01A10_EXPOSURE_STEP, exposure_max);
}
if (!pm_runtime_get_if_in_use(ov01a10->dev))