diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2022-11-18 23:45:03 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-11-22 13:23:25 +0100 |
commit | 9a2c1d64c8eb4fab0387c0943eb6666b246f96aa (patch) | |
tree | 141647a61136d6a2b7f476f380dbd2e5f483e434 | |
parent | f198d34759eb3d110d37bb42f6c39cd90bd0b0cb (diff) | |
download | linux-stable-9a2c1d64c8eb4fab0387c0943eb6666b246f96aa.tar.gz linux-stable-9a2c1d64c8eb4fab0387c0943eb6666b246f96aa.tar.bz2 linux-stable-9a2c1d64c8eb4fab0387c0943eb6666b246f96aa.zip |
staging: most: i2c: 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-570-uwe@kleine-koenig.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/most/i2c/i2c.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/most/i2c/i2c.c b/drivers/staging/most/i2c/i2c.c index 285a071f02be..df53a4c4f850 100644 --- a/drivers/staging/most/i2c/i2c.c +++ b/drivers/staging/most/i2c/i2c.c @@ -284,7 +284,7 @@ static irqreturn_t most_irq_handler(int irq, void *_dev) * * Register the i2c client device as a MOST interface */ -static int i2c_probe(struct i2c_client *client, const struct i2c_device_id *id) +static int i2c_probe(struct i2c_client *client) { struct hdm_i2c *dev; int ret, i; @@ -359,7 +359,7 @@ static struct i2c_driver i2c_driver = { .driver = { .name = "hdm_i2c", }, - .probe = i2c_probe, + .probe_new = i2c_probe, .remove = i2c_remove, .id_table = i2c_id, }; |