media: i2c: ad5820: Fix error path
authorRicardo Ribalda <ribalda@chromium.org>
Wed, 21 Sep 2022 11:38:00 +0000 (13:38 +0200)
committerSakari Ailus <sakari.ailus@linux.intel.com>
Tue, 25 Oct 2022 07:37:04 +0000 (10:37 +0300)
commit9fce241660f37d9e95e93c0ae6fba8cfefa5797b
treecb3098b153abb1af094bc2263d7b234bdeab7c0f
parent9084e2c8617a63c478b48810ff7a8985de55f308
media: i2c: ad5820: Fix error path

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>
drivers/media/i2c/ad5820.c