1 From 7048ac9fd3b918d83a71caf5c94bb061a2866794 Mon Sep 17 00:00:00 2001
2 From: Naushir Patuck <naush@raspberrypi.com>
3 Date: Tue, 19 May 2020 16:56:33 +0100
4 Subject: [PATCH] media: i2c: imx477: Return correct result on sensor
7 The test should return -EIO if the register read id does not match
8 the expected sensor id.
10 Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
12 drivers/media/i2c/imx477.c | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
15 --- a/drivers/media/i2c/imx477.c
16 +++ b/drivers/media/i2c/imx477.c
17 @@ -1919,7 +1919,7 @@ static int imx477_identify_module(struct
18 if (val != IMX477_CHIP_ID) {
19 dev_err(&client->dev, "chip id mismatch: %x!=%x\n",