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: twl-core: Convert to i2c's .probe_new()

.probe_new() doesn't get the i2c_device_id * parameter, so determine
that explicitly in the probe function.

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-476-uwe@kleine-koenig.org

authored by

Uwe Kleine-König and committed by
Lee Jones
c291d0e3 328fc6f8

+3 -2
+3 -2
drivers/mfd/twl-core.c
··· 754 754 755 755 /* NOTE: This driver only handles a single twl4030/tps659x0 chip */ 756 756 static int 757 - twl_probe(struct i2c_client *client, const struct i2c_device_id *id) 757 + twl_probe(struct i2c_client *client) 758 758 { 759 + const struct i2c_device_id *id = i2c_client_get_device_id(client); 759 760 struct device_node *node = client->dev.of_node; 760 761 struct platform_device *pdev; 761 762 const struct regmap_config *twl_regmap_config; ··· 956 955 .driver.name = DRIVER_NAME, 957 956 .driver.pm = &twl_dev_pm_ops, 958 957 .id_table = twl_ids, 959 - .probe = twl_probe, 958 + .probe_new = twl_probe, 960 959 .remove = twl_remove, 961 960 }; 962 961 builtin_i2c_driver(twl_driver);