Commit 08878cbc authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Sakari Ailus

media: i2c: imx290: Use device lock for the control handler

The link frequency and pixel rate controls are set without holding the
control handler lock, resulting in kernel warnings. As the value of
those controls depend on the format, the simplest fix is to use the
device lock for the control handler.
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: default avatarAlexander Stein <alexander.stein@ew.tq-group.com>
Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
parent a96dfea1
...@@ -1043,6 +1043,7 @@ static int imx290_probe(struct i2c_client *client) ...@@ -1043,6 +1043,7 @@ static int imx290_probe(struct i2c_client *client)
imx290_entity_init_cfg(&imx290->sd, NULL); imx290_entity_init_cfg(&imx290->sd, NULL);
v4l2_ctrl_handler_init(&imx290->ctrls, 4); v4l2_ctrl_handler_init(&imx290->ctrls, 4);
imx290->ctrls.lock = &imx290->lock;
v4l2_ctrl_new_std(&imx290->ctrls, &imx290_ctrl_ops, v4l2_ctrl_new_std(&imx290->ctrls, &imx290_ctrl_ops,
V4L2_CID_GAIN, 0, 72, 1, 0); V4L2_CID_GAIN, 0, 72, 1, 0);
......
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