media: i2c: ov7251: Set VTS instead of having full tables for FPS.
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Thu, 17 Feb 2022 16:24:51 +0000 (16:24 +0000)
committerDom Cobley <popcornmix@gmail.com>
Mon, 21 Mar 2022 16:04:44 +0000 (16:04 +0000)
commit63843c4bb331c07492adcceb7c693fd39c26d88b
tree0a1915cb4a96f642cf75e9078a922398a0cadfc4
parent466500dbe2a92d20c962baf103f8a9fef4c06937
media: i2c: ov7251: Set VTS instead of having full tables for FPS.

The driver did have a full copy of the registers for each of
the 30, 60, and 90 fps modes. The main difference between them were
registers 0x380e/f which set the total height of the frame (VTS).

Remove the excess register settings, and Set that register value
explicitly for each mode.

This has dropped a change for the 30fps mode to registers 0x3016,
0x3017, 0x3018, 0x301a, 0x301b, and 0x301c. The data available
doesn't describe these registers, but the sensor seems fully
functional without the alternate settings.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
drivers/media/i2c/ov7251.c