summaryrefslogtreecommitdiffstats
path: root/drivers/platform/chrome/cros_ec_i2c.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2022-11-18 23:44:06 +0100
committerTzung-Bi Shih <tzungbi@kernel.org>2022-11-19 07:44:46 +0100
commitf9e510dc92df270756b6a42d98c738525d01e8c3 (patch)
tree683ac51fd3d6433f68bb70920bb4687248aae3a2 /drivers/platform/chrome/cros_ec_i2c.c
parentplatform/chrome: cros_ec_lpc: Force synchronous probe (diff)
downloadlinux-f9e510dc92df270756b6a42d98c738525d01e8c3.tar.xz
linux-f9e510dc92df270756b6a42d98c738525d01e8c3.zip
platform/chrome: cros_ec: 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> Reviewed-by: Guenter Roeck <groeck@chromium.org> Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org> Link: https://lore.kernel.org/r/20221118224540.619276-513-uwe@kleine-koenig.org
Diffstat (limited to 'drivers/platform/chrome/cros_ec_i2c.c')
-rw-r--r--drivers/platform/chrome/cros_ec_i2c.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/platform/chrome/cros_ec_i2c.c b/drivers/platform/chrome/cros_ec_i2c.c
index b6823c654c3f..dbe698f33128 100644
--- a/drivers/platform/chrome/cros_ec_i2c.c
+++ b/drivers/platform/chrome/cros_ec_i2c.c
@@ -286,8 +286,7 @@ done:
return ret;
}
-static int cros_ec_i2c_probe(struct i2c_client *client,
- const struct i2c_device_id *dev_id)
+static int cros_ec_i2c_probe(struct i2c_client *client)
{
struct device *dev = &client->dev;
struct cros_ec_device *ec_dev = NULL;
@@ -373,7 +372,7 @@ static struct i2c_driver cros_ec_driver = {
.of_match_table = of_match_ptr(cros_ec_i2c_of_match),
.pm = &cros_ec_i2c_pm_ops,
},
- .probe = cros_ec_i2c_probe,
+ .probe_new = cros_ec_i2c_probe,
.remove = cros_ec_i2c_remove,
.id_table = cros_ec_i2c_id,
};