misc: lis3lv02d/lis3lv02d_i2c: 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-495-uwe@kleine-koenig.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
643a16a0eb
commit
7198cf0f1c
@ -100,8 +100,7 @@ static const struct of_device_id lis3lv02d_i2c_dt_ids[] = {
|
||||
MODULE_DEVICE_TABLE(of, lis3lv02d_i2c_dt_ids);
|
||||
#endif
|
||||
|
||||
static int lis3lv02d_i2c_probe(struct i2c_client *client,
|
||||
const struct i2c_device_id *id)
|
||||
static int lis3lv02d_i2c_probe(struct i2c_client *client)
|
||||
{
|
||||
int ret = 0;
|
||||
struct lis3lv02d_platform_data *pdata = client->dev.platform_data;
|
||||
@ -263,7 +262,7 @@ static struct i2c_driver lis3lv02d_i2c_driver = {
|
||||
.pm = &lis3_pm_ops,
|
||||
.of_match_table = of_match_ptr(lis3lv02d_i2c_dt_ids),
|
||||
},
|
||||
.probe = lis3lv02d_i2c_probe,
|
||||
.probe_new = lis3lv02d_i2c_probe,
|
||||
.remove = lis3lv02d_i2c_remove,
|
||||
.id_table = lis3lv02d_id,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user