Commit e9c812ca authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Jonathan Cameron

iio: chemical: atlas-ezo-sensor: Convert to i2c's .probe_new()

.probe_new() doesn't get the i2c_device_id * parameter, so determine
that explicitly in the probe function.
Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20221118224540.619276-75-uwe@kleine-koenig.orgSigned-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 89d63224
...@@ -201,9 +201,9 @@ static const struct of_device_id atlas_ezo_dt_ids[] = { ...@@ -201,9 +201,9 @@ static const struct of_device_id atlas_ezo_dt_ids[] = {
}; };
MODULE_DEVICE_TABLE(of, atlas_ezo_dt_ids); MODULE_DEVICE_TABLE(of, atlas_ezo_dt_ids);
static int atlas_ezo_probe(struct i2c_client *client, static int atlas_ezo_probe(struct i2c_client *client)
const struct i2c_device_id *id)
{ {
const struct i2c_device_id *id = i2c_client_get_device_id(client);
const struct atlas_ezo_device *chip; const struct atlas_ezo_device *chip;
struct atlas_ezo_data *data; struct atlas_ezo_data *data;
struct iio_dev *indio_dev; struct iio_dev *indio_dev;
...@@ -238,7 +238,7 @@ static struct i2c_driver atlas_ezo_driver = { ...@@ -238,7 +238,7 @@ static struct i2c_driver atlas_ezo_driver = {
.name = ATLAS_EZO_DRV_NAME, .name = ATLAS_EZO_DRV_NAME,
.of_match_table = atlas_ezo_dt_ids, .of_match_table = atlas_ezo_dt_ids,
}, },
.probe = atlas_ezo_probe, .probe_new = atlas_ezo_probe,
.id_table = atlas_ezo_id, .id_table = atlas_ezo_id,
}; };
module_i2c_driver(atlas_ezo_driver); module_i2c_driver(atlas_ezo_driver);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment