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: wl1273-core: 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-478-uwe@kleine-koenig.org

authored by

Uwe Kleine-König and committed by
Lee Jones
490e11b7 d85213be

+2 -3
+2 -3
drivers/mfd/wl1273-core.c
··· 156 156 return 0; 157 157 } 158 158 159 - static int wl1273_core_probe(struct i2c_client *client, 160 - const struct i2c_device_id *id) 159 + static int wl1273_core_probe(struct i2c_client *client) 161 160 { 162 161 struct wl1273_fm_platform_data *pdata = dev_get_platdata(&client->dev); 163 162 struct wl1273_core *core; ··· 232 233 .driver = { 233 234 .name = WL1273_FM_DRIVER_NAME, 234 235 }, 235 - .probe = wl1273_core_probe, 236 + .probe_new = wl1273_core_probe, 236 237 .id_table = wl1273_driver_id_table, 237 238 }; 238 239