Skip to content

Commit 1a165a0

Browse files
Uwe Kleine-Königbroonie
authored andcommitted
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>
1 parent c7f635b commit 1a165a0

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

drivers/spi/spi-xcomm.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,7 @@ static int spi_xcomm_transfer_one(struct spi_master *master,
202202
return status;
203203
}
204204

205-
static int spi_xcomm_probe(struct i2c_client *i2c,
206-
const struct i2c_device_id *id)
205+
static int spi_xcomm_probe(struct i2c_client *i2c)
207206
{
208207
struct spi_xcomm *spi_xcomm;
209208
struct spi_master *master;
@@ -242,7 +241,7 @@ static struct i2c_driver spi_xcomm_driver = {
242241
.name = "spi-xcomm",
243242
},
244243
.id_table = spi_xcomm_ids,
245-
.probe = spi_xcomm_probe,
244+
.probe_new = spi_xcomm_probe,
246245
};
247246
module_i2c_driver(spi_xcomm_driver);
248247

0 commit comments

Comments
 (0)