diff options
| author | 2022-11-18 23:45:08 +0100 | |
|---|---|---|
| committer | 2022-11-22 17:33:27 +0100 | |
| commit | d4468280d8bcd68a7303efcb5a404efb680de1fc (patch) | |
| tree | f3509f40b2e3947b1fc3e5b8d57e323ec760a6ad | |
| parent | usb: isp1301-omap: Convert to i2c's .probe_new() (diff) | |
| download | wireguard-linux-d4468280d8bcd68a7303efcb5a404efb680de1fc.tar.xz wireguard-linux-d4468280d8bcd68a7303efcb5a404efb680de1fc.zip | |
usb: usb4604: 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-575-uwe@kleine-koenig.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
| -rw-r--r-- | drivers/usb/misc/usb4604.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/usb/misc/usb4604.c b/drivers/usb/misc/usb4604.c index 2142af9bbdec..6b5e77231efa 100644 --- a/drivers/usb/misc/usb4604.c +++ b/drivers/usb/misc/usb4604.c @@ -97,8 +97,7 @@ static int usb4604_probe(struct usb4604 *hub) return usb4604_switch_mode(hub, hub->mode); } -static int usb4604_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int usb4604_i2c_probe(struct i2c_client *i2c) { struct usb4604 *hub; @@ -155,7 +154,7 @@ static struct i2c_driver usb4604_i2c_driver = { .pm = pm_ptr(&usb4604_i2c_pm_ops), .of_match_table = of_match_ptr(usb4604_of_match), }, - .probe = usb4604_i2c_probe, + .probe_new = usb4604_i2c_probe, .id_table = usb4604_id, }; module_i2c_driver(usb4604_i2c_driver); |
