]> git.baikalelectronics.ru Git - kernel.git/commit
media: i2c: ad5820: Fix error path
authorRicardo Ribalda <ribalda@chromium.org>
Wed, 21 Sep 2022 11:38:00 +0000 (13:38 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Jan 2023 10:40:59 +0000 (11:40 +0100)
commit85aa575ec1bee8dab98da0e2eaaf996a0d55f1ed
tree6bfebbebfe0f73c5e7a07916e7f167fda67c40be
parent94e3dfa2ccd86e06ea401ec4f911a42fa614fdbb
media: i2c: ad5820: Fix error path

[ Upstream commit 9fce241660f37d9e95e93c0ae6fba8cfefa5797b ]

Error path seems to be swaped. Fix the order and provide some meaningful
names.

Fixes: 97428b1ef013 ("[media] ad5820: Add driver for auto-focus coil")
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/i2c/ad5820.c