Skip to content

Commit 332af82

Browse files
Uwe Kleine-Königdianders
authored andcommitted
drm: Switch i2c drivers back to use .probe()
After commit b8a1a4c ("i2c: Provide a temporary .probe_new() call-back type"), all drivers being converted to .probe_new() and then 03c835f ("i2c: Switch .probe() to not take an id parameter") convert back to (the new) .probe() to be able to eventually drop .probe_new() from struct i2c_driver. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Javier Martinez Canillas <javierm@redhat.com> Reviewed-by: Martyn Welch <martyn.welch@collabora.com> Reviewed-by: Douglas Anderson <dianders@chromium.org> Reviewed-by: Guenter Roeck <groeck@chromium.org> Signed-off-by: Douglas Anderson <dianders@chromium.org> Link: https://patchwork.freedesktop.org/patch/msgid/20230526090709.1517297-1-u.kleine-koenig@pengutronix.de
1 parent 5769b45 commit 332af82

32 files changed

Lines changed: 33 additions & 33 deletions

drivers/gpu/drm/bridge/adv7511/adv7511_drv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1393,7 +1393,7 @@ static struct i2c_driver adv7511_driver = {
13931393
.of_match_table = adv7511_of_ids,
13941394
},
13951395
.id_table = adv7511_i2c_ids,
1396-
.probe_new = adv7511_probe,
1396+
.probe = adv7511_probe,
13971397
.remove = adv7511_remove,
13981398
};
13991399

drivers/gpu/drm/bridge/analogix/analogix-anx6345.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,7 @@ static struct i2c_driver anx6345_driver = {
815815
.name = "anx6345",
816816
.of_match_table = of_match_ptr(anx6345_match_table),
817817
},
818-
.probe_new = anx6345_i2c_probe,
818+
.probe = anx6345_i2c_probe,
819819
.remove = anx6345_i2c_remove,
820820
.id_table = anx6345_id,
821821
};

drivers/gpu/drm/bridge/analogix/analogix-anx78xx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1389,7 +1389,7 @@ static struct i2c_driver anx78xx_driver = {
13891389
.name = "anx7814",
13901390
.of_match_table = of_match_ptr(anx78xx_match_table),
13911391
},
1392-
.probe_new = anx78xx_i2c_probe,
1392+
.probe = anx78xx_i2c_probe,
13931393
.remove = anx78xx_i2c_remove,
13941394
.id_table = anx78xx_id,
13951395
};

drivers/gpu/drm/bridge/analogix/anx7625.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2800,7 +2800,7 @@ static struct i2c_driver anx7625_driver = {
28002800
.of_match_table = anx_match_table,
28012801
.pm = &anx7625_pm_ops,
28022802
},
2803-
.probe_new = anx7625_i2c_probe,
2803+
.probe = anx7625_i2c_probe,
28042804
.remove = anx7625_i2c_remove,
28052805

28062806
.id_table = anx7625_id,

drivers/gpu/drm/bridge/chipone-icn6211.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -795,7 +795,7 @@ static struct i2c_device_id chipone_i2c_id[] = {
795795
MODULE_DEVICE_TABLE(i2c, chipone_i2c_id);
796796

797797
static struct i2c_driver chipone_i2c_driver = {
798-
.probe_new = chipone_i2c_probe,
798+
.probe = chipone_i2c_probe,
799799
.id_table = chipone_i2c_id,
800800
.driver = {
801801
.name = "chipone-icn6211-i2c",

drivers/gpu/drm/bridge/chrontel-ch7033.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ static const struct i2c_device_id ch7033_ids[] = {
603603
MODULE_DEVICE_TABLE(i2c, ch7033_ids);
604604

605605
static struct i2c_driver ch7033_driver = {
606-
.probe_new = ch7033_probe,
606+
.probe = ch7033_probe,
607607
.remove = ch7033_remove,
608608
.driver = {
609609
.name = "ch7033",

drivers/gpu/drm/bridge/cros-ec-anx7688.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ static const struct of_device_id cros_ec_anx7688_bridge_match_table[] = {
173173
MODULE_DEVICE_TABLE(of, cros_ec_anx7688_bridge_match_table);
174174

175175
static struct i2c_driver cros_ec_anx7688_bridge_driver = {
176-
.probe_new = cros_ec_anx7688_bridge_probe,
176+
.probe = cros_ec_anx7688_bridge_probe,
177177
.remove = cros_ec_anx7688_bridge_remove,
178178
.driver = {
179179
.name = "cros-ec-anx7688-bridge",

drivers/gpu/drm/bridge/ite-it6505.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3479,7 +3479,7 @@ static struct i2c_driver it6505_i2c_driver = {
34793479
.of_match_table = it6505_of_match,
34803480
.pm = &it6505_bridge_pm_ops,
34813481
},
3482-
.probe_new = it6505_i2c_probe,
3482+
.probe = it6505_i2c_probe,
34833483
.remove = it6505_i2c_remove,
34843484
.shutdown = it6505_shutdown,
34853485
.id_table = it6505_id,

drivers/gpu/drm/bridge/ite-it66121.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1640,7 +1640,7 @@ static struct i2c_driver it66121_driver = {
16401640
.name = "it66121",
16411641
.of_match_table = it66121_dt_match,
16421642
},
1643-
.probe_new = it66121_probe,
1643+
.probe = it66121_probe,
16441644
.remove = it66121_remove,
16451645
.id_table = it66121_id,
16461646
};

drivers/gpu/drm/bridge/lontium-lt8912b.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,7 @@ static struct i2c_driver lt8912_i2c_driver = {
773773
.name = "lt8912",
774774
.of_match_table = lt8912_dt_match,
775775
},
776-
.probe_new = lt8912_probe,
776+
.probe = lt8912_probe,
777777
.remove = lt8912_remove,
778778
.id_table = lt8912_id,
779779
};

0 commit comments

Comments
 (0)