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: tps65910: 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-474-uwe@kleine-koenig.org

authored by

Uwe Kleine-König and committed by
Lee Jones
74e52d31 ba801bd5

+3 -3
+3 -3
drivers/mfd/tps65910.c
··· 441 441 DEVCTRL_DEV_OFF_MASK); 442 442 } 443 443 444 - static int tps65910_i2c_probe(struct i2c_client *i2c, 445 - const struct i2c_device_id *id) 444 + static int tps65910_i2c_probe(struct i2c_client *i2c) 446 445 { 446 + const struct i2c_device_id *id = i2c_client_get_device_id(i2c); 447 447 struct tps65910 *tps65910; 448 448 struct tps65910_board *pmic_plat_data; 449 449 struct tps65910_board *of_pmic_plat_data = NULL; ··· 535 535 .name = "tps65910", 536 536 .of_match_table = of_match_ptr(tps65910_of_match), 537 537 }, 538 - .probe = tps65910_i2c_probe, 538 + .probe_new = tps65910_i2c_probe, 539 539 .id_table = tps65910_i2c_id, 540 540 }; 541 541