Commit 44675757 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Javier Martinez Canillas

drm/panel: olimex-lcd-olinuxino: 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 avatarJavier Martinez Canillas <javierm@redhat.com>
Signed-off-by: default avatarJavier Martinez Canillas <javierm@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221118224540.619276-43-uwe@kleine-koenig.org
parent 30725995
...@@ -202,8 +202,7 @@ static const struct drm_panel_funcs lcd_olinuxino_funcs = { ...@@ -202,8 +202,7 @@ static const struct drm_panel_funcs lcd_olinuxino_funcs = {
.get_modes = lcd_olinuxino_get_modes, .get_modes = lcd_olinuxino_get_modes,
}; };
static int lcd_olinuxino_probe(struct i2c_client *client, static int lcd_olinuxino_probe(struct i2c_client *client)
const struct i2c_device_id *id)
{ {
struct device *dev = &client->dev; struct device *dev = &client->dev;
struct lcd_olinuxino *lcd; struct lcd_olinuxino *lcd;
...@@ -309,7 +308,7 @@ static struct i2c_driver lcd_olinuxino_driver = { ...@@ -309,7 +308,7 @@ static struct i2c_driver lcd_olinuxino_driver = {
.name = "lcd_olinuxino", .name = "lcd_olinuxino",
.of_match_table = lcd_olinuxino_of_ids, .of_match_table = lcd_olinuxino_of_ids,
}, },
.probe = lcd_olinuxino_probe, .probe_new = lcd_olinuxino_probe,
.remove = lcd_olinuxino_remove, .remove = lcd_olinuxino_remove,
}; };
......
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