Commit d36eb68a authored by Sakari Ailus's avatar Sakari Ailus Committed by Mauro Carvalho Chehab

media: ccs: Remove analogue gain field

The analogue gain control was stored to the device specific struct but was
never used. Remove it.
Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent 82187857
...@@ -777,13 +777,12 @@ static int ccs_init_controls(struct ccs_sensor *sensor) ...@@ -777,13 +777,12 @@ static int ccs_init_controls(struct ccs_sensor *sensor)
sensor->pixel_array->ctrl_handler.lock = &sensor->mutex; sensor->pixel_array->ctrl_handler.lock = &sensor->mutex;
sensor->analog_gain = v4l2_ctrl_new_std( v4l2_ctrl_new_std(&sensor->pixel_array->ctrl_handler, &ccs_ctrl_ops,
&sensor->pixel_array->ctrl_handler, &ccs_ctrl_ops, V4L2_CID_ANALOGUE_GAIN,
V4L2_CID_ANALOGUE_GAIN, CCS_LIM(sensor, ANALOG_GAIN_CODE_MIN),
CCS_LIM(sensor, ANALOG_GAIN_CODE_MIN), CCS_LIM(sensor, ANALOG_GAIN_CODE_MAX),
CCS_LIM(sensor, ANALOG_GAIN_CODE_MAX), max(CCS_LIM(sensor, ANALOG_GAIN_CODE_STEP), 1U),
max(CCS_LIM(sensor, ANALOG_GAIN_CODE_STEP), 1U), CCS_LIM(sensor, ANALOG_GAIN_CODE_MIN));
CCS_LIM(sensor, ANALOG_GAIN_CODE_MIN));
if (CCS_LIM(sensor, DIGITAL_GAIN_CAPABILITY) == if (CCS_LIM(sensor, DIGITAL_GAIN_CAPABILITY) ==
CCS_DIGITAL_GAIN_CAPABILITY_GLOBAL || CCS_DIGITAL_GAIN_CAPABILITY_GLOBAL ||
......
...@@ -262,7 +262,6 @@ struct ccs_sensor { ...@@ -262,7 +262,6 @@ struct ccs_sensor {
unsigned long *valid_link_freqs; unsigned long *valid_link_freqs;
/* Pixel array controls */ /* Pixel array controls */
struct v4l2_ctrl *analog_gain;
struct v4l2_ctrl *exposure; struct v4l2_ctrl *exposure;
struct v4l2_ctrl *hflip; struct v4l2_ctrl *hflip;
struct v4l2_ctrl *vflip; struct v4l2_ctrl *vflip;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment