mirror of
https://github.com/torvalds/linux.git
synced 2026-06-03 03:53:37 +02:00
media: i2c: ov01a10: Replace exposure->min/step with direct define use
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>
This commit is contained in:
parent
d4fdb4e6e0
commit
e8fefc67f2
|
|
@ -366,9 +366,8 @@ static int ov01a10_set_ctrl(struct v4l2_ctrl *ctrl)
|
|||
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))
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user