projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7f635b
)
spi: xcomm: Convert to i2c's .probe_new()
author
Uwe Kleine-König
<u.kleine-koenig@pengutronix.de>
Fri, 18 Nov 2022 22:44:59 +0000
(23:44 +0100)
committer
Mark Brown
<broonie@kernel.org>
Wed, 23 Nov 2022 17:26:27 +0000
(17:26 +0000)
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>
drivers/spi/spi-xcomm.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi-xcomm.c
b/drivers/spi/spi-xcomm.c
index 1d9b3f03d986e1d3e3b26dc94ade7fa9eda0d01d..8628241ec99e4f19d2766d1af67916e4f214188b 100644
(file)
--- a/
drivers/spi/spi-xcomm.c
+++ b/
drivers/spi/spi-xcomm.c
@@
-202,8
+202,7
@@
static int spi_xcomm_transfer_one(struct spi_master *master,
return status;
}
-static int spi_xcomm_probe(struct i2c_client *i2c,
- const struct i2c_device_id *id)
+static int spi_xcomm_probe(struct i2c_client *i2c)
{
struct spi_xcomm *spi_xcomm;
struct spi_master *master;
@@
-242,7
+241,7
@@
static struct i2c_driver spi_xcomm_driver = {
.name = "spi-xcomm",
},
.id_table = spi_xcomm_ids,
- .probe
= spi_xcomm_probe,
+ .probe
_new
= spi_xcomm_probe,
};
module_i2c_driver(spi_xcomm_driver);