diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2023-05-18 00:01:35 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-05-29 16:04:52 +0200 |
commit | f050bb8f56c6417c0f7ec18d32e709a9c97b57d4 (patch) | |
tree | 3645b6d3665c534b119c9172cca46e592597c9ef /drivers/misc/hmc6352.c | |
parent | accessibility: use C99 array init (diff) | |
download | linux-f050bb8f56c6417c0f7ec18d32e709a9c97b57d4.tar.xz linux-f050bb8f56c6417c0f7ec18d32e709a9c97b57d4.zip |
misc: Switch i2c drivers back to use .probe()
After commit b8a1a4cd5a98 ("i2c: Provide a temporary .probe_new()
call-back type"), all drivers being converted to .probe_new() and then
03c835f498b5 ("i2c: Switch .probe() to not take an id parameter") convert
back to (the new) .probe() to be able to eventually drop .probe_new() from
struct i2c_driver.
While touching these drivers, fix alignment in apds990x.c and bh1770glc.c.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Reviewed-by: Jean Delvare <jdelvare@suse.de>
Link: https://lore.kernel.org/r/20230517220135.170379-1-u.kleine-koenig@pengutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/hmc6352.c')
-rw-r--r-- | drivers/misc/hmc6352.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/hmc6352.c b/drivers/misc/hmc6352.c index 8967940ecd1e..759eaeb64307 100644 --- a/drivers/misc/hmc6352.c +++ b/drivers/misc/hmc6352.c @@ -131,7 +131,7 @@ static struct i2c_driver hmc6352_driver = { .driver = { .name = "hmc6352", }, - .probe_new = hmc6352_probe, + .probe = hmc6352_probe, .remove = hmc6352_remove, .id_table = hmc6352_id, }; |