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

authored by

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

+2 -3
+2 -3
drivers/mfd/tps65912-i2c.c
··· 21 21 }; 22 22 MODULE_DEVICE_TABLE(of, tps65912_i2c_of_match_table); 23 23 24 - static int tps65912_i2c_probe(struct i2c_client *client, 25 - const struct i2c_device_id *ids) 24 + static int tps65912_i2c_probe(struct i2c_client *client) 26 25 { 27 26 struct tps65912 *tps; 28 27 ··· 60 61 .name = "tps65912", 61 62 .of_match_table = tps65912_i2c_of_match_table, 62 63 }, 63 - .probe = tps65912_i2c_probe, 64 + .probe_new = tps65912_i2c_probe, 64 65 .remove = tps65912_i2c_remove, 65 66 .id_table = tps65912_i2c_id_table, 66 67 };