]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
staging: olpc_dcon: Convert to i2c's .probe_new()
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fri, 18 Nov 2022 22:45:04 +0000 (23:45 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Nov 2022 12:23:25 +0000 (13:23 +0100)
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>
drivers/staging/olpc_dcon/olpc_dcon.c

index 4fb9b9f1079962c2ef3e946c714c85167df9109c..2fba52e0bd7bde73d44e6c351dcc7284bd04dfe7 100644 (file)
@@ -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,