]> git.ipfire.org Git - thirdparty/linux.git/commit
media: ov08x40: Improve ov08x40_identify_module() error logging
authorHans de Goede <hdegoede@redhat.com>
Fri, 20 Dec 2024 14:41:26 +0000 (15:41 +0100)
committerHans Verkuil <hverkuil@xs4all.nl>
Sat, 15 Feb 2025 14:22:39 +0000 (15:22 +0100)
commit24d74ca5024ad83dd26f2f086eafae78246c2888
treedc9e311a09688c54dbc59981d498bac3ba2272de
parent7a39639e448f070cbe37317ac922886b6080ff43
media: ov08x40: Improve ov08x40_identify_module() error logging

ov08x40_identify_module() already logs an error if the read ID mismatches,
so having its caller also log an error results in 2 errors in this case.

Add error logging to the ID register read in ov08x40_identify_module() and
drop the error logging in the caller.

Tested-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/i2c/ov08x40.c