mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 13:14:02 +02:00
media: i2c: imx415: Return test pattern write errors
imx415_set_testpattern() accumulates failures from cci_write(), but drops
the value and always returns success. Return the accumulated error so V4L2
reports failures to userspace.
Fixes: d5df1c7f3f ("media: i2c: imx415: Convert to new CCI register access helpers")
Cc: stable@vger.kernel.org
Reviewed-by: Michael Riesch <michael.riesch@collabora.com>
Signed-off-by: Narasimharao Vadlamudi <ahmisaranrao@gmail.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
This commit is contained in:
parent
31152f5b0f
commit
8cd5735b88
|
|
@ -686,7 +686,7 @@ static int imx415_set_testpattern(struct imx415 *sensor, int val)
|
|||
cci_write(sensor->regmap, IMX415_DIG_CLP_MODE, 0x01, &ret);
|
||||
cci_write(sensor->regmap, IMX415_WRJ_OPEN, 0x01, &ret);
|
||||
}
|
||||
return 0;
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int imx415_s_ctrl(struct v4l2_ctrl *ctrl)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user