Skip to content

Commit

Permalink
media: i2c: imx477: Fix link frequency menu
Browse files Browse the repository at this point in the history
"media: i2c: imx477: Add options for slightly modifying the link freq"
created a link frequency menu with 2 items in instead of one.
Correct this.

Signed-off-by: Dave Stevenson <[email protected]>
  • Loading branch information
6by9 committed Nov 25, 2024
1 parent 5b29221 commit 8691544
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/i2c/imx477.c
Original file line number Diff line number Diff line change
Expand Up @@ -2051,7 +2051,7 @@ static int imx477_init_controls(struct imx477 *imx477)
/* LINK_FREQ is also read only */
imx477->link_freq =
v4l2_ctrl_new_int_menu(ctrl_hdlr, &imx477_ctrl_ops,
V4L2_CID_LINK_FREQ, 1, 0,
V4L2_CID_LINK_FREQ, 0, 0,
&link_freqs[imx477->link_freq_idx]);
if (imx477->link_freq)
imx477->link_freq->flags |= V4L2_CTRL_FLAG_READ_ONLY;
Expand Down

0 comments on commit 8691544

Please sign in to comment.