spi: xcomm: 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>
Acked-for-MFD-by: Lee Jones <lee@kernel.org>
Acked-for-Backlight-by: Lee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20221118224540.619276-566-uwe@kleine-koenig.org
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Uwe Kleine-König
2022-11-18 23:44:59 +01:00
committed by Mark Brown
parent c7f635bc16
commit 1a165a067f

View File

@ -202,8 +202,7 @@ static int spi_xcomm_transfer_one(struct spi_master *master,
return status; return status;
} }
static int spi_xcomm_probe(struct i2c_client *i2c, static int spi_xcomm_probe(struct i2c_client *i2c)
const struct i2c_device_id *id)
{ {
struct spi_xcomm *spi_xcomm; struct spi_xcomm *spi_xcomm;
struct spi_master *master; struct spi_master *master;
@ -242,7 +241,7 @@ static struct i2c_driver spi_xcomm_driver = {
.name = "spi-xcomm", .name = "spi-xcomm",
}, },
.id_table = spi_xcomm_ids, .id_table = spi_xcomm_ids,
.probe = spi_xcomm_probe, .probe_new = spi_xcomm_probe,
}; };
module_i2c_driver(spi_xcomm_driver); module_i2c_driver(spi_xcomm_driver);