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: tps65010: Convert to i2c's .probe_new()

.probe_new() doesn't get the i2c_device_id * parameter, so determine
that explicitly in the probe function.

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-468-uwe@kleine-koenig.org

authored by

Uwe Kleine-König and committed by
Lee Jones
71b954d8 bb5b1c64

+3 -3
+3 -3
drivers/mfd/tps65010.c
··· 519 519 the_tps = NULL; 520 520 } 521 521 522 - static int tps65010_probe(struct i2c_client *client, 523 - const struct i2c_device_id *id) 522 + static int tps65010_probe(struct i2c_client *client) 524 523 { 524 + const struct i2c_device_id *id = i2c_client_get_device_id(client); 525 525 struct tps65010 *tps; 526 526 int status; 527 527 struct tps65010_board *board = dev_get_platdata(&client->dev); ··· 668 668 .driver = { 669 669 .name = "tps65010", 670 670 }, 671 - .probe = tps65010_probe, 671 + .probe_new = tps65010_probe, 672 672 .remove = tps65010_remove, 673 673 .id_table = tps65010_id, 674 674 };