Commit 59ee8ca4 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Greg Kroah-Hartman
Browse files

misc: eeprom/eeprom: 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: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20221118224540.619276-488-uwe@kleine-koenig.org


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7198cf0f
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -141,8 +141,7 @@ static int eeprom_detect(struct i2c_client *client, struct i2c_board_info *info)
	return 0;
}

static int eeprom_probe(struct i2c_client *client,
			const struct i2c_device_id *id)
static int eeprom_probe(struct i2c_client *client)
{
	struct i2c_adapter *adapter = client->adapter;
	struct eeprom_data *data;
@@ -197,7 +196,7 @@ static struct i2c_driver eeprom_driver = {
	.driver = {
		.name	= "eeprom",
	},
	.probe		= eeprom_probe,
	.probe_new	= eeprom_probe,
	.remove		= eeprom_remove,
	.id_table	= eeprom_id,