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: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Link: https://lore.kernel.org/r/20221118224540.619276-571-uwe@kleine-koenig.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
9a2c1d64c8
commit
b62649822e
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue