usb: misc: usb3503: 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>
Link: https://lore.kernel.org/r/20221118224540.619276-574-uwe@kleine-koenig.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Uwe Kleine-König 2022-11-18 23:45:07 +01:00 committed by Greg Kroah-Hartman
parent d4468280d8
commit 4b1e537ad3
1 changed files with 2 additions and 3 deletions

View File

@ -280,8 +280,7 @@ err_clk:
return err; return err;
} }
static int usb3503_i2c_probe(struct i2c_client *i2c, static int usb3503_i2c_probe(struct i2c_client *i2c)
const struct i2c_device_id *id)
{ {
struct usb3503 *hub; struct usb3503 *hub;
int err; int err;
@ -400,7 +399,7 @@ static struct i2c_driver usb3503_i2c_driver = {
.pm = pm_ptr(&usb3503_i2c_pm_ops), .pm = pm_ptr(&usb3503_i2c_pm_ops),
.of_match_table = of_match_ptr(usb3503_of_match), .of_match_table = of_match_ptr(usb3503_of_match),
}, },
.probe = usb3503_i2c_probe, .probe_new = usb3503_i2c_probe,
.remove = usb3503_i2c_remove, .remove = usb3503_i2c_remove,
.id_table = usb3503_id, .id_table = usb3503_id,
}; };