Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

mfd: tps6586x: 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>
Signed-off-by: Lee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20221118224540.619276-473-uwe@kleine-koenig.org

authored by

Uwe Kleine-König and committed by
Lee Jones
ba801bd5 3d984091

+2 -3
+2 -3
drivers/mfd/tps6586x.c
··· 499 499 dev_info(&client->dev, "Found %s, VERSIONCRC is %02x\n", name, version); 500 500 } 501 501 502 - static int tps6586x_i2c_probe(struct i2c_client *client, 503 - const struct i2c_device_id *id) 502 + static int tps6586x_i2c_probe(struct i2c_client *client) 504 503 { 505 504 struct tps6586x_platform_data *pdata = dev_get_platdata(&client->dev); 506 505 struct tps6586x *tps6586x; ··· 623 624 .of_match_table = of_match_ptr(tps6586x_of_match), 624 625 .pm = &tps6586x_pm_ops, 625 626 }, 626 - .probe = tps6586x_i2c_probe, 627 + .probe_new = tps6586x_i2c_probe, 627 628 .remove = tps6586x_i2c_remove, 628 629 .id_table = tps6586x_id_table, 629 630 };