diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2023-02-27 01:26:54 +0300 |
---|---|---|
committer | Wolfram Sang <wsa@kernel.org> | 2023-03-09 23:59:30 +0300 |
commit | 834a9dc46db796f662615a18b8a38dde73f3b804 (patch) | |
tree | e43a6f53489ef03e7405ab09e9196de654742a26 /drivers/i2c/i2c-slave-testunit.c | |
parent | 2f2afad9d35ff762028de7497dac60aa32be9f0f (diff) | |
download | linux-834a9dc46db796f662615a18b8a38dde73f3b804.tar.xz |
i2c: Convert drivers to new .probe() callback
Now that .probe() was changed not to get the id parameter, drivers can
be converted back to that with the eventual goal to drop .probe_new().
Implement that for the i2c drivers that are part of the i2c core.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'drivers/i2c/i2c-slave-testunit.c')
-rw-r--r-- | drivers/i2c/i2c-slave-testunit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/i2c-slave-testunit.c b/drivers/i2c/i2c-slave-testunit.c index 75ee7ebdb614..a49642bbae4b 100644 --- a/drivers/i2c/i2c-slave-testunit.c +++ b/drivers/i2c/i2c-slave-testunit.c @@ -171,7 +171,7 @@ static struct i2c_driver i2c_slave_testunit_driver = { .driver = { .name = "i2c-slave-testunit", }, - .probe_new = i2c_slave_testunit_probe, + .probe = i2c_slave_testunit_probe, .remove = i2c_slave_testunit_remove, .id_table = i2c_slave_testunit_id, }; |