提交 4a4c51dd 编写于 作者: N Naushir Patuck 提交者: Zheng Zengkai

media: i2c: imx477: Return correct result on sensor id verification

raspberrypi inclusion
category: feature
bugzilla: 50432

--------------------------------

The test should return -EIO if the register read id does not match
the expected sensor id.
Signed-off-by: NNaushir Patuck <naush@raspberrypi.com>
Signed-off-by: NFang Yafen <yafen@iscas.ac.cn>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 942aa1ee
......@@ -1919,7 +1919,7 @@ static int imx477_identify_module(struct imx477 *imx477)
if (val != IMX477_CHIP_ID) {
dev_err(&client->dev, "chip id mismatch: %x!=%x\n",
IMX477_CHIP_ID, val);
ret = -EINVAL;
return -EIO;
}
return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册