iio: light: vcnl4000: register an IIO device with a device-managed function

Use a device-managed counterpart of iio_device_register() and remove the
redundant iio_device_unregister() call in driver remove function,
allowing us to remove vcnl4000_remove() function altogether.

Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
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:22 +03:00 • committed by Jonathan Cameron
commit de1cbc4b21