iio: light: vcnl4000: move power state function into device-managed action

Move power state setting into a device-managed action to get rid of
fail_poweroff goto label and remove it from vcnl4000_remove() function.

Signed-off-by: Erikas Bitovtas <xerikasxx@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:
Erikas Bitovtas 2026-04-14 15:37:20 +03:00 • committed by Jonathan Cameron
commit 857cb79df0