Skip to content

Commit 3127a86

Browse files
Uwe Kleine-Königgregkh
authored andcommitted
misc: ds1682: 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-487-uwe@kleine-koenig.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 781edb0 commit 3127a86

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/misc/ds1682.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,7 @@ static const struct bin_attribute ds1682_eeprom_attr = {
200200
/*
201201
* Called when a ds1682 device is matched with this driver
202202
*/
203-
static int ds1682_probe(struct i2c_client *client,
204-
const struct i2c_device_id *id)
203+
static int ds1682_probe(struct i2c_client *client)
205204
{
206205
int rc;
207206

@@ -251,7 +250,7 @@ static struct i2c_driver ds1682_driver = {
251250
.name = "ds1682",
252251
.of_match_table = ds1682_of_match,
253252
},
254-
.probe = ds1682_probe,
253+
.probe_new = ds1682_probe,
255254
.remove = ds1682_remove,
256255
.id_table = ds1682_id,
257256
};

0 commit comments

Comments
 (0)