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)
commitd8600a189c71ece45f7c75f796ae43b6bfabb419
tree438320c3240d8d11c6f821e104cdb4ce03175b85
parent3cc6a67b73fdf2bb42f52aff7efe0f73496527a3
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