diff options
author | Simon Glass <sjg@chromium.org> | 2020-12-04 02:55:21 +0300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2020-12-14 02:51:09 +0300 |
commit | d1998a9fde0a917d6496299f6a97b6bccfdc6724 (patch) | |
tree | 1931d0c875e829620180bf383722c1a69bd1a951 /drivers/video/tegra124 | |
parent | c69cda25c9b59e53a6bc8969ada58942549f5b5d (diff) | |
download | u-boot-d1998a9fde0a917d6496299f6a97b6bccfdc6724.tar.xz |
dm: treewide: Rename ofdata_to_platdata() to of_to_plat()
This name is far too long. Rename it to remove the 'data' bits. This makes
it consistent with the platdata->plat rename.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/video/tegra124')
-rw-r--r-- | drivers/video/tegra124/dp.c | 4 | ||||
-rw-r--r-- | drivers/video/tegra124/sor.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/video/tegra124/dp.c b/drivers/video/tegra124/dp.c index d9599ee950..8f5116fe7c 100644 --- a/drivers/video/tegra124/dp.c +++ b/drivers/video/tegra124/dp.c @@ -1566,7 +1566,7 @@ error_enable: return 0; } -static int tegra_dp_ofdata_to_platdata(struct udevice *dev) +static int tegra_dp_of_to_plat(struct udevice *dev) { struct tegra_dp_plat *plat = dev_get_plat(dev); @@ -1616,7 +1616,7 @@ U_BOOT_DRIVER(dp_tegra) = { .name = "dpaux_tegra", .id = UCLASS_DISPLAY, .of_match = tegra_dp_ids, - .ofdata_to_platdata = tegra_dp_ofdata_to_platdata, + .of_to_plat = tegra_dp_of_to_plat, .probe = dp_tegra_probe, .ops = &dp_tegra_ops, .priv_auto = sizeof(struct tegra_dp_priv), diff --git a/drivers/video/tegra124/sor.c b/drivers/video/tegra124/sor.c index 83f3aad92c..95976ee573 100644 --- a/drivers/video/tegra124/sor.c +++ b/drivers/video/tegra124/sor.c @@ -1042,7 +1042,7 @@ static int tegra_sor_set_backlight(struct udevice *dev, int percent) return 0; } -static int tegra_sor_ofdata_to_platdata(struct udevice *dev) +static int tegra_sor_of_to_plat(struct udevice *dev) { struct tegra_dc_sor_data *priv = dev_get_priv(dev); int ret; @@ -1077,7 +1077,7 @@ U_BOOT_DRIVER(sor_tegra) = { .name = "sor_tegra", .id = UCLASS_VIDEO_BRIDGE, .of_match = tegra_sor_ids, - .ofdata_to_platdata = tegra_sor_ofdata_to_platdata, + .of_to_plat = tegra_sor_of_to_plat, .ops = &tegra_sor_ops, .priv_auto = sizeof(struct tegra_dc_sor_data), }; |