Skip to content

Commit e4bcd6a

Browse files
committed
media: i2c: imx415: Reorder supported_modes by lane rate
Before adding additional modes, sort the list by lane rate as that make most sense. Signed-off-by: Dave Stevenson <[email protected]>
1 parent a65a245 commit e4bcd6a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

drivers/media/i2c/imx415.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -512,14 +512,6 @@ static const struct imx415_mode supported_modes[] = {
512512
.regs = imx415_linkrate_720mbps,
513513
},
514514
},
515-
{
516-
.lane_rate = 1440000000,
517-
.hmax_min = { 1066, 533 },
518-
.reg_list = {
519-
.num_of_regs = ARRAY_SIZE(imx415_linkrate_1440mbps),
520-
.regs = imx415_linkrate_1440mbps,
521-
},
522-
},
523515
{
524516
.lane_rate = 891000000,
525517
.hmax_min = { 2200, 1100 },
@@ -528,6 +520,14 @@ static const struct imx415_mode supported_modes[] = {
528520
.regs = imx415_linkrate_891mbps,
529521
},
530522
},
523+
{
524+
.lane_rate = 1440000000,
525+
.hmax_min = { 1066, 533 },
526+
.reg_list = {
527+
.num_of_regs = ARRAY_SIZE(imx415_linkrate_1440mbps),
528+
.regs = imx415_linkrate_1440mbps,
529+
},
530+
},
531531
};
532532

533533
static const char *const imx415_test_pattern_menu[] = {

0 commit comments

Comments
 (0)