Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

iio: humidity: si7020: Convert to i2c's .probe_new()

The probe function doesn't make use of the i2c_device_id * parameter so it
can be trivially converted.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20221118224540.619276-107-uwe@kleine-koenig.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Uwe Kleine-König and committed by
Jonathan Cameron
e6b61055 e18594f6

+2 -3
+2 -3
drivers/iio/humidity/si7020.c
··· 103 103 .read_raw = si7020_read_raw, 104 104 }; 105 105 106 - static int si7020_probe(struct i2c_client *client, 107 - const struct i2c_device_id *id) 106 + static int si7020_probe(struct i2c_client *client) 108 107 { 109 108 struct iio_dev *indio_dev; 110 109 struct i2c_client **data; ··· 155 156 .name = "si7020", 156 157 .of_match_table = si7020_dt_ids, 157 158 }, 158 - .probe = si7020_probe, 159 + .probe_new = si7020_probe, 159 160 .id_table = si7020_id, 160 161 }; 161 162