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

authored by

Uwe Kleine-König and committed by
Lee Jones
521fcf40 8b20feff

+2 -3
+2 -3
drivers/mfd/wm8400-core.c
··· 118 118 EXPORT_SYMBOL_GPL(wm8400_reset_codec_reg_cache); 119 119 120 120 #if IS_ENABLED(CONFIG_I2C) 121 - static int wm8400_i2c_probe(struct i2c_client *i2c, 122 - const struct i2c_device_id *id) 121 + static int wm8400_i2c_probe(struct i2c_client *i2c) 123 122 { 124 123 struct wm8400 *wm8400; 125 124 ··· 145 146 .driver = { 146 147 .name = "WM8400", 147 148 }, 148 - .probe = wm8400_i2c_probe, 149 + .probe_new = wm8400_i2c_probe, 149 150 .id_table = wm8400_i2c_id, 150 151 }; 151 152 #endif