]> git.ipfire.org Git - thirdparty/linux.git/commit
iio: light: vcnl4000: replace mutex_init() with devm_mutex_init()
authorErikas Bitovtas <xerikasxx@gmail.com>
Fri, 20 Mar 2026 16:45:39 +0000 (18:45 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 21 Mar 2026 12:40:29 +0000 (12:40 +0000)
commit177fa06d8e0b497fc9aec4ae2b233877ecd61bdb
tree33770387ef65ca3501a2aa0300e253a5d0ffbe18
parent1c9cb53572ee67d19c43191fe02eb937173ee9a7
iio: light: vcnl4000: replace mutex_init() with devm_mutex_init()

Replace mutex_init() used across the driver with its device-managed
counterpart, so all assigned mutexes get destroyed.

Reviewed-by: David Lechner <dlechner@baylibre.com>
Signed-off-by: Erikas Bitovtas <xerikasxx@gmail.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/vcnl4000.c