media: i2c: ov9281: Read chip ID via 2 reads
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Mon, 6 Jul 2020 16:51:32 +0000 (17:51 +0100)
committerDom Cobley <popcornmix@gmail.com>
Mon, 21 Mar 2022 16:04:12 +0000 (16:04 +0000)
commit58deee7c917e1c3c5e37987c3a89ad19d791f58a
treed345df3c90afd1ae3af2be2a291a34d272d2277b
parent8169f376b122279a7fb260fd12df9aef10272ee6
media: i2c: ov9281: 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/ov9281.c