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: wm8350-i2c: 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>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Lee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20221118224540.619276-480-uwe@kleine-koenig.org

authored by

Uwe Kleine-König and committed by
Lee Jones
8b20feff 5fb66be1

+2 -3
+2 -3
drivers/mfd/wm8350-i2c.c
··· 16 16 #include <linux/regmap.h> 17 17 #include <linux/slab.h> 18 18 19 - static int wm8350_i2c_probe(struct i2c_client *i2c, 20 - const struct i2c_device_id *id) 19 + static int wm8350_i2c_probe(struct i2c_client *i2c) 21 20 { 22 21 struct wm8350 *wm8350; 23 22 struct wm8350_platform_data *pdata = dev_get_platdata(&i2c->dev); ··· 52 53 .name = "wm8350", 53 54 .suppress_bind_attrs = true, 54 55 }, 55 - .probe = wm8350_i2c_probe, 56 + .probe_new = wm8350_i2c_probe, 56 57 .id_table = wm8350_i2c_id, 57 58 }; 58 59