media: i2c: imx477: Return correct result on sensor id verification
authorNaushir Patuck <naush@raspberrypi.com>
Tue, 19 May 2020 15:56:33 +0000 (16:56 +0100)
committerpopcornmix <popcornmix@gmail.com>
Wed, 27 Jan 2021 19:13:19 +0000 (19:13 +0000)
commitaf07ee13f04fceba06f842b5c098881063a9b4a1
tree6918bf0096fea7f30403624f6518f04796c55e3d
parent145a9f6f64794d74aeafffa4cdb2e2653c882502
media: i2c: imx477: Return correct result on sensor id verification

The test should return -EIO if the register read id does not match
the expected sensor id.

Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
drivers/media/i2c/imx477.c