Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

nfc: pn544: 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: Jakub Kicinski <kuba@kernel.org>

authored by

Uwe Kleine-König and committed by
Jakub Kicinski
2338adb2 d72c9828

+2 -3
+2 -3
drivers/nfc/pn544/i2c.c
··· 866 866 { }, 867 867 }; 868 868 869 - static int pn544_hci_i2c_probe(struct i2c_client *client, 870 - const struct i2c_device_id *id) 869 + static int pn544_hci_i2c_probe(struct i2c_client *client) 871 870 { 872 871 struct device *dev = &client->dev; 873 872 struct pn544_i2c_phy *phy; ··· 953 954 .of_match_table = of_match_ptr(of_pn544_i2c_match), 954 955 .acpi_match_table = ACPI_PTR(pn544_hci_i2c_acpi_match), 955 956 }, 956 - .probe = pn544_hci_i2c_probe, 957 + .probe_new = pn544_hci_i2c_probe, 957 958 .id_table = pn544_hci_i2c_id_table, 958 959 .remove = pn544_hci_i2c_remove, 959 960 };