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: twl6040: 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-477-uwe@kleine-koenig.org

authored by

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

+2 -3
+2 -3
drivers/mfd/twl6040.c
··· 633 633 .mask_base = TWL6040_REG_INTMR, 634 634 }; 635 635 636 - static int twl6040_probe(struct i2c_client *client, 637 - const struct i2c_device_id *id) 636 + static int twl6040_probe(struct i2c_client *client) 638 637 { 639 638 struct device_node *node = client->dev.of_node; 640 639 struct twl6040 *twl6040; ··· 832 833 .driver = { 833 834 .name = "twl6040", 834 835 }, 835 - .probe = twl6040_probe, 836 + .probe_new = twl6040_probe, 836 837 .remove = twl6040_remove, 837 838 .id_table = twl6040_i2c_id, 838 839 };