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>
Sat, 7 Jan 2023 11:07:16 +0000 (12:07 +0100)
commitdc8da40430c942c678883fcd8f77c91a8b79a7e7
treeec62b62039de125e8b07058f5ff22864caf5b35a
parent5e8751a977a49a6e00cce1a8da5ca16da83f9c8c
media: i2c: ad5820: Fix error path

[ Upstream commit 9fce241660f37d9e95e93c0ae6fba8cfefa5797b ]

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

Fixes: bee3d5115611 ("[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