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

staging: olpc_dcon: 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-571-uwe@kleine-koenig.org


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

static int dcon_probe(struct i2c_client *client, const struct i2c_device_id *id)
static int dcon_probe(struct i2c_client *client)
{
	struct dcon_priv *dcon;
	int rc, i, j;
@@ -779,7 +779,7 @@ static struct i2c_driver dcon_driver = {
	},
	.class = I2C_CLASS_DDC | I2C_CLASS_HWMON,
	.id_table = dcon_idtable,
	.probe = dcon_probe,
	.probe_new = dcon_probe,
	.remove = dcon_remove,
	.detect = dcon_detect,
	.address_list = normal_i2c,