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: tps65086: 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-470-uwe@kleine-koenig.org

authored by

Uwe Kleine-König and committed by
Lee Jones
1f662faa 0e1a8964

+2 -3
+2 -3
drivers/mfd/tps65086.c
··· 61 61 }; 62 62 MODULE_DEVICE_TABLE(of, tps65086_of_match_table); 63 63 64 - static int tps65086_probe(struct i2c_client *client, 65 - const struct i2c_device_id *ids) 64 + static int tps65086_probe(struct i2c_client *client) 66 65 { 67 66 struct tps65086 *tps; 68 67 unsigned int version; ··· 129 130 .name = "tps65086", 130 131 .of_match_table = tps65086_of_match_table, 131 132 }, 132 - .probe = tps65086_probe, 133 + .probe_new = tps65086_probe, 133 134 .remove = tps65086_remove, 134 135 .id_table = tps65086_id_table, 135 136 };