aboutsummaryrefslogtreecommitdiff
path: root/drivers/spi/tegra114_spi.c
diff options
context:
space:
mode:
authorSimon Glass2020-12-03 16:55:21 -0700
committerSimon Glass2020-12-13 16:51:09 -0700
commitd1998a9fde0a917d6496299f6a97b6bccfdc6724 (patch)
tree1931d0c875e829620180bf383722c1a69bd1a951 /drivers/spi/tegra114_spi.c
parentc69cda25c9b59e53a6bc8969ada58942549f5b5d (diff)
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/spi/tegra114_spi.c')
-rw-r--r--drivers/spi/tegra114_spi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/spi/tegra114_spi.c b/drivers/spi/tegra114_spi.c
index 7021f66dd5e..0798db7224d 100644
--- a/drivers/spi/tegra114_spi.c
+++ b/drivers/spi/tegra114_spi.c
@@ -97,7 +97,7 @@ struct tegra114_spi_priv {
int last_transaction_us;
};
-static int tegra114_spi_ofdata_to_platdata(struct udevice *bus)
+static int tegra114_spi_of_to_plat(struct udevice *bus)
{
struct tegra_spi_platdata *plat = bus->plat;
@@ -393,7 +393,7 @@ U_BOOT_DRIVER(tegra114_spi) = {
.id = UCLASS_SPI,
.of_match = tegra114_spi_ids,
.ops = &tegra114_spi_ops,
- .ofdata_to_platdata = tegra114_spi_ofdata_to_platdata,
+ .of_to_plat = tegra114_spi_of_to_plat,
.plat_auto = sizeof(struct tegra_spi_platdata),
.priv_auto = sizeof(struct tegra114_spi_priv),
.probe = tegra114_spi_probe,