Skip to content

Commit 3cd6dba

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 918087f commit 3cd6dba

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
@@ -558,8 +558,6 @@ static const struct imx477_reg mode_common_regs[] = {
558558

559559
/* 12 mpix 10fps */
560560
static const struct imx477_reg mode_4056x3040_regs[] = {
561-
{0x0342, 0x5d},
562-
{0x0343, 0xc0},
563561
{0x0344, 0x00},
564562
{0x0345, 0x00},
565563
{0x0346, 0x00},
@@ -668,8 +666,6 @@ static const struct imx477_reg mode_4056x3040_regs[] = {
668666

669667
/* 2x2 binned. 40fps */
670668
static const struct imx477_reg mode_2028x1520_regs[] = {
671-
{0x0342, 0x31},
672-
{0x0343, 0xc4},
673669
{0x0344, 0x00},
674670
{0x0345, 0x00},
675671
{0x0346, 0x00},
@@ -767,8 +763,6 @@ static const struct imx477_reg mode_2028x1520_regs[] = {
767763

768764
/* 1080p cropped mode */
769765
static const struct imx477_reg mode_2028x1080_regs[] = {
770-
{0x0342, 0x31},
771-
{0x0343, 0xc4},
772766
{0x0344, 0x00},
773767
{0x0345, 0x00},
774768
{0x0346, 0x01},
@@ -881,8 +875,6 @@ static const struct imx477_reg mode_1332x990_regs[] = {
881875
{0x0112, 0x0a},
882876
{0x0113, 0x0a},
883877
{0x0114, 0x01},
884-
{0x0342, 0x1a},
885-
{0x0343, 0x08},
886878
{0x0340, 0x04},
887879
{0x0341, 0x1a},
888880
{0x0344, 0x00},

0 commit comments

Comments
 (0)