media: i2c: ov9282: Read chip ID via 2 reads
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Wed, 11 Oct 2023 10:12:41 +0000 (11:12 +0100)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:35:05 +0000 (11:35 +0000)
commitfcb7a0304e016233128c1e5366912fc04e779075
tree1b17917455ba3dd1e65875332adcd410ebd58a63
parent6030b8665d7a68d50b0f033f4c735951cac01a1c
media: i2c: ov9282: Read chip ID via 2 reads

Vision Components have made an OV9281 module which blocks reading
back the majority of registers to comply with NDAs, and in doing
so doesn't allow auto-increment register reading as used when
reading the chip ID.

Use two reads and manually combine the results.

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