提交 6b0b3e37 编写于 作者: N Nikolaus Voss 提交者: Jonathan Cameron

IIO: st_accel_i2c.c: Use probe_new() instead of probe()

struct i2c_device_id argument of probe() is not used, so use probe_new()
instead.
Signed-off-by: NNikolaus Voss <nikolaus.voss@loewensteinmedical.de>
Reviewed-by: NAndy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: NJonathan Cameron <Jonathan.Cameron@huawei.com>
上级 19868faa
......@@ -139,8 +139,7 @@ static const struct i2c_device_id st_accel_id_table[] = {
};
MODULE_DEVICE_TABLE(i2c, st_accel_id_table);
static int st_accel_i2c_probe(struct i2c_client *client,
const struct i2c_device_id *id)
static int st_accel_i2c_probe(struct i2c_client *client)
{
struct iio_dev *indio_dev;
struct st_sensor_data *adata;
......@@ -179,7 +178,7 @@ static struct i2c_driver st_accel_driver = {
.of_match_table = of_match_ptr(st_accel_of_match),
.acpi_match_table = ACPI_PTR(st_accel_acpi_match),
},
.probe = st_accel_i2c_probe,
.probe_new = st_accel_i2c_probe,
.remove = st_accel_i2c_remove,
.id_table = st_accel_id_table,
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册