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

iio: accel: kxsd9: 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: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20221023132302.911644-12-u.kleine-koenig@pengutronix.deSigned-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 5019025f
...@@ -10,8 +10,7 @@ ...@@ -10,8 +10,7 @@
#include "kxsd9.h" #include "kxsd9.h"
static int kxsd9_i2c_probe(struct i2c_client *i2c, static int kxsd9_i2c_probe(struct i2c_client *i2c)
const struct i2c_device_id *id)
{ {
static const struct regmap_config config = { static const struct regmap_config config = {
.reg_bits = 8, .reg_bits = 8,
...@@ -55,7 +54,7 @@ static struct i2c_driver kxsd9_i2c_driver = { ...@@ -55,7 +54,7 @@ static struct i2c_driver kxsd9_i2c_driver = {
.of_match_table = kxsd9_of_match, .of_match_table = kxsd9_of_match,
.pm = pm_ptr(&kxsd9_dev_pm_ops), .pm = pm_ptr(&kxsd9_dev_pm_ops),
}, },
.probe = kxsd9_i2c_probe, .probe_new = kxsd9_i2c_probe,
.remove = kxsd9_i2c_remove, .remove = kxsd9_i2c_remove,
.id_table = kxsd9_i2c_id, .id_table = kxsd9_i2c_id,
}; };
......
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