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: tps6105x: 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-467-uwe@kleine-koenig.org

authored by

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

+2 -3
+2 -3
drivers/mfd/tps6105x.c
··· 117 117 return pdata; 118 118 } 119 119 120 - static int tps6105x_probe(struct i2c_client *client, 121 - const struct i2c_device_id *id) 120 + static int tps6105x_probe(struct i2c_client *client) 122 121 { 123 122 struct tps6105x *tps6105x; 124 123 struct tps6105x_platform_data *pdata; ··· 209 210 .name = "tps6105x", 210 211 .of_match_table = tps6105x_of_match, 211 212 }, 212 - .probe = tps6105x_probe, 213 + .probe_new = tps6105x_probe, 213 214 .remove = tps6105x_remove, 214 215 .id_table = tps6105x_id, 215 216 };