Input: kxtj9 - 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-218-uwe@kleine-koenig.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
Uwe Kleine-König 2022-11-18 23:39:11 +01:00 коммит произвёл Dmitry Torokhov
Родитель b67df1e128
Коммит b05989d773
1 изменённых файлов: 2 добавлений и 3 удалений

Просмотреть файл

@ -385,8 +385,7 @@ out:
return retval;
}
static int kxtj9_probe(struct i2c_client *client,
const struct i2c_device_id *id)
static int kxtj9_probe(struct i2c_client *client)
{
const struct kxtj9_platform_data *pdata =
dev_get_platdata(&client->dev);
@ -539,7 +538,7 @@ static struct i2c_driver kxtj9_driver = {
.name = NAME,
.pm = &kxtj9_pm_ops,
},
.probe = kxtj9_probe,
.probe_new = kxtj9_probe,
.id_table = kxtj9_id,
};