net: dsa: xrs700x: 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> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
f925e2154d
commit
dfd5e53dd7
@@ -76,8 +76,7 @@ static const struct regmap_config xrs700x_i2c_regmap_config = {
|
|||||||
.val_format_endian = REGMAP_ENDIAN_BIG
|
.val_format_endian = REGMAP_ENDIAN_BIG
|
||||||
};
|
};
|
||||||
|
|
||||||
static int xrs700x_i2c_probe(struct i2c_client *i2c,
|
static int xrs700x_i2c_probe(struct i2c_client *i2c)
|
||||||
const struct i2c_device_id *i2c_id)
|
|
||||||
{
|
{
|
||||||
struct xrs700x *priv;
|
struct xrs700x *priv;
|
||||||
int ret;
|
int ret;
|
||||||
@@ -148,7 +147,7 @@ static struct i2c_driver xrs700x_i2c_driver = {
|
|||||||
.name = "xrs700x-i2c",
|
.name = "xrs700x-i2c",
|
||||||
.of_match_table = of_match_ptr(xrs700x_i2c_dt_ids),
|
.of_match_table = of_match_ptr(xrs700x_i2c_dt_ids),
|
||||||
},
|
},
|
||||||
.probe = xrs700x_i2c_probe,
|
.probe_new = xrs700x_i2c_probe,
|
||||||
.remove = xrs700x_i2c_remove,
|
.remove = xrs700x_i2c_remove,
|
||||||
.shutdown = xrs700x_i2c_shutdown,
|
.shutdown = xrs700x_i2c_shutdown,
|
||||||
.id_table = xrs700x_i2c_id,
|
.id_table = xrs700x_i2c_id,
|
||||||
|
|||||||
Reference in New Issue
Block a user