Commit 26588cbd authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Robert Foss

drm/bridge: lt8912b: 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: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Link: https://lore.kernel.org/r/20221118224540.619276-23-uwe@kleine-koenig.orgSigned-off-by: default avatarRobert Foss <robert.foss@linaro.org>
parent c4150e13
...@@ -702,8 +702,7 @@ static int lt8912_put_dt(struct lt8912 *lt) ...@@ -702,8 +702,7 @@ static int lt8912_put_dt(struct lt8912 *lt)
return 0; return 0;
} }
static int lt8912_probe(struct i2c_client *client, static int lt8912_probe(struct i2c_client *client)
const struct i2c_device_id *id)
{ {
static struct lt8912 *lt; static struct lt8912 *lt;
int ret = 0; int ret = 0;
...@@ -775,7 +774,7 @@ static struct i2c_driver lt8912_i2c_driver = { ...@@ -775,7 +774,7 @@ static struct i2c_driver lt8912_i2c_driver = {
.name = "lt8912", .name = "lt8912",
.of_match_table = lt8912_dt_match, .of_match_table = lt8912_dt_match,
}, },
.probe = lt8912_probe, .probe_new = lt8912_probe,
.remove = lt8912_remove, .remove = lt8912_remove,
.id_table = lt8912_id, .id_table = lt8912_id,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment