summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2022-11-18 23:43:49 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-11-23 19:56:05 +0100
commit8427bd8bdee8f35797cade56fe173fbea990e38c (patch)
tree54cc9f44b92dac91845956a3ee778262f3ccbc61
parent59ee8ca4eeda35d850e4c81ec3065dba10023842 (diff)
downloadlinux-8427bd8bdee8f35797cade56fe173fbea990e38c.tar.gz
linux-8427bd8bdee8f35797cade56fe173fbea990e38c.tar.bz2
linux-8427bd8bdee8f35797cade56fe173fbea990e38c.zip
misc: tsl2550: 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> Link: https://lore.kernel.org/r/20221118224540.619276-496-uwe@kleine-koenig.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/misc/tsl2550.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/misc/tsl2550.c b/drivers/misc/tsl2550.c
index 1652fb9b3856..6c62b94e0acd 100644
--- a/drivers/misc/tsl2550.c
+++ b/drivers/misc/tsl2550.c
@@ -331,8 +331,7 @@ static int tsl2550_init_client(struct i2c_client *client)
*/
static struct i2c_driver tsl2550_driver;
-static int tsl2550_probe(struct i2c_client *client,
- const struct i2c_device_id *id)
+static int tsl2550_probe(struct i2c_client *client)
{
struct i2c_adapter *adapter = client->adapter;
struct tsl2550_data *data;
@@ -438,7 +437,7 @@ static struct i2c_driver tsl2550_driver = {
.of_match_table = tsl2550_of_match,
.pm = TSL2550_PM_OPS,
},
- .probe = tsl2550_probe,
+ .probe_new = tsl2550_probe,
.remove = tsl2550_remove,
.id_table = tsl2550_id,
};