]> git.baikalelectronics.ru Git - kernel.git/commit
iio: adc: nau7802: Convert driver to use ->probe_new()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 31 May 2022 21:39:21 +0000 (00:39 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 14 Jun 2022 10:53:08 +0000 (11:53 +0100)
commit774701052bfc40a84064101f7822d570f8e09fd7
tree438320c3240d8d11c6f821e104cdb4ce03175b85
parente590faa8a53eebd04ced0b7504cd6453a0ce149f
iio: adc: nau7802: Convert driver to use ->probe_new()

Use the ->probe_new() callback.

The driver does not use const struct i2c_device_id * argument,
so convert it to utilise the simplified I²C driver registration.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20220531213922.72992-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/nau7802.c