]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: light: vcnl4000: use variables for I2C client and device instances
authorErikas Bitovtas <xerikasxx@gmail.com>
Fri, 20 Mar 2026 16:45:41 +0000 (18:45 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 21 Mar 2026 12:40:30 +0000 (12:40 +0000)
commitc4380f90752b8ad469e077658f378c9f454e429c
treee03b8a2c0d748a83c13e3798bfaf79195b7b358e
parentb10aecd9d59ae084bea58472010f92023efa4283
iio: light: vcnl4000: use variables for I2C client and device instances

After moving data->client and client->dev into variables of their own,
replace all instances of data->client and client->dev being used in
vcnl4200_init() and vcnl4000_probe() by the said variables to reduce
clutter.

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