mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-30 15:43:08 -04:00
media: imx355: Use NULL ctrl_ops for HBLANK as it is a read-only control
This avoids the set_ctrl handler being called under any circumstances, as it will return an error for the unhandled ctrl. Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
This commit is contained in:
committed by
Sakari Ailus
parent
f31cb77bb1
commit
2ae189fc1c
@@ -1124,9 +1124,8 @@ static int imx355_init_controls(struct imx355 *imx355)
|
||||
1, vblank_def);
|
||||
|
||||
hblank = mode->llp - mode->width;
|
||||
imx355->hblank = v4l2_ctrl_new_std(ctrl_hdlr, &imx355_ctrl_ops,
|
||||
V4L2_CID_HBLANK, hblank, hblank,
|
||||
1, hblank);
|
||||
imx355->hblank = v4l2_ctrl_new_std(ctrl_hdlr, NULL, V4L2_CID_HBLANK,
|
||||
hblank, hblank, 1, hblank);
|
||||
if (imx355->hblank)
|
||||
imx355->hblank->flags |= V4L2_CTRL_FLAG_READ_ONLY;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user