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: tps65218: 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-472-uwe@kleine-koenig.org

authored by

Uwe Kleine-König and committed by
Lee Jones
3d984091 b6325098

+2 -3
+2 -3
drivers/mfd/tps65218.c
··· 280 280 return 0; 281 281 } 282 282 283 - static int tps65218_probe(struct i2c_client *client, 284 - const struct i2c_device_id *ids) 283 + static int tps65218_probe(struct i2c_client *client) 285 284 { 286 285 struct tps65218 *tps; 287 286 int ret; ··· 347 348 .name = "tps65218", 348 349 .of_match_table = of_tps65218_match_table, 349 350 }, 350 - .probe = tps65218_probe, 351 + .probe_new = tps65218_probe, 351 352 .id_table = tps65218_id_table, 352 353 }; 353 354