Skip to content

Commit b7ae630

Browse files
committed
media: imx477: Remove duplicated writes to line_length_pix
Register line_length_pix was being written by both the tables of registers and the control handler for V4L2_CID_HBLANK. Remove the duplication in the tables. Signed-off-by: Dave Stevenson <[email protected]>
1 parent 407877a commit b7ae630

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

drivers/media/i2c/imx477.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -574,8 +574,6 @@ static const struct imx477_reg mode_common_regs[] = {
574574

575575
/* 12 mpix 10fps */
576576
static const struct imx477_reg mode_4056x3040_regs[] = {
577-
{0x0342, 0x5d},
578-
{0x0343, 0xc0},
579577
{0x0344, 0x00},
580578
{0x0345, 0x00},
581579
{0x0346, 0x00},
@@ -684,8 +682,6 @@ static const struct imx477_reg mode_4056x3040_regs[] = {
684682

685683
/* 2x2 binned. 40fps */
686684
static const struct imx477_reg mode_2028x1520_regs[] = {
687-
{0x0342, 0x31},
688-
{0x0343, 0xc4},
689685
{0x0344, 0x00},
690686
{0x0345, 0x00},
691687
{0x0346, 0x00},
@@ -783,8 +779,6 @@ static const struct imx477_reg mode_2028x1520_regs[] = {
783779

784780
/* 1080p cropped mode */
785781
static const struct imx477_reg mode_2028x1080_regs[] = {
786-
{0x0342, 0x31},
787-
{0x0343, 0xc4},
788782
{0x0344, 0x00},
789783
{0x0345, 0x00},
790784
{0x0346, 0x01},
@@ -897,8 +891,6 @@ static const struct imx477_reg mode_1332x990_regs[] = {
897891
{0x0112, 0x0a},
898892
{0x0113, 0x0a},
899893
{0x0114, 0x01},
900-
{0x0342, 0x1a},
901-
{0x0343, 0x08},
902894
{0x0340, 0x04},
903895
{0x0341, 0x1a},
904896
{0x0344, 0x00},

0 commit comments

Comments
 (0)