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: tps65090: 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-471-uwe@kleine-koenig.org

authored by

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

+2 -3
+2 -3
drivers/mfd/tps65090.c
··· 164 164 }; 165 165 #endif 166 166 167 - static int tps65090_i2c_probe(struct i2c_client *client, 168 - const struct i2c_device_id *id) 167 + static int tps65090_i2c_probe(struct i2c_client *client) 169 168 { 170 169 struct tps65090_platform_data *pdata = dev_get_platdata(&client->dev); 171 170 int irq_base = 0; ··· 237 238 .suppress_bind_attrs = true, 238 239 .of_match_table = of_match_ptr(tps65090_of_match), 239 240 }, 240 - .probe = tps65090_i2c_probe, 241 + .probe_new = tps65090_i2c_probe, 241 242 .id_table = tps65090_id_table, 242 243 }; 243 244