]> git.ipfire.org Git - thirdparty/linux.git/commit
iio: light: vcnl4000: register an IIO device with a device-managed function
authorErikas Bitovtas <xerikasxx@gmail.com>
Tue, 14 Apr 2026 12:37:22 +0000 (15:37 +0300)
committerJonathan Cameron <jic23@kernel.org>
Mon, 27 Apr 2026 08:58:21 +0000 (09:58 +0100)
commitde1cbc4b213d034d76164ebbfd4172ffbc5f618d
treeec4404752b6be338b92bfb77e59f8b4bcfcc1f19
parentde1839edfe36642328ed7b3fd49b948a4aca03c8
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>
drivers/iio/light/vcnl4000.c