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: tps6507x: 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-469-uwe@kleine-koenig.org

authored by

Uwe Kleine-König and committed by
Lee Jones
0e1a8964 71b954d8

+2 -3
+2 -3
drivers/mfd/tps6507x.c
··· 84 84 return 0; 85 85 } 86 86 87 - static int tps6507x_i2c_probe(struct i2c_client *i2c, 88 - const struct i2c_device_id *id) 87 + static int tps6507x_i2c_probe(struct i2c_client *i2c) 89 88 { 90 89 struct tps6507x_dev *tps6507x; 91 90 ··· 122 123 .name = "tps6507x", 123 124 .of_match_table = of_match_ptr(tps6507x_of_match), 124 125 }, 125 - .probe = tps6507x_i2c_probe, 126 + .probe_new = tps6507x_i2c_probe, 126 127 .id_table = tps6507x_i2c_id, 127 128 }; 128 129