media: ov5647: Fix return codes from ov5647_write/ov5647_read functions.
authorDavid Plowman <david.plowman@raspberrypi.org>
Wed, 15 Jan 2020 13:40:38 +0000 (13:40 +0000)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:33:09 +0000 (11:33 +0000)
commita6eb3d7afef1152828d8f3f62eac8b4cd2139c7d
tree40b56f0b5895d29ff1bcd3e1803f77c8fe1f6563
parent6dc609da1d7fa7f54b4083f01a3d80df6889bc35
media: ov5647: Fix return codes from ov5647_write/ov5647_read functions.

Previously they were returning positive non-zero codes for success,
which were getting passed up the call stack. Since release 4.19,
do_dentry_open (fs/open.c) has been catching these and flagging an
error. (So this driver has been broken since that date.)

Fixes: 3c2472a [media] media: i2c: Add support for OV5647 sensor
Signed-off-by: David Plowman <david.plowman@raspberrypi.org>
Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
drivers/media/i2c/ov5647.c