diff options
author | Simon Glass <sjg@chromium.org> | 2020-12-03 16:55:21 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2020-12-13 16:51:09 -0700 |
commit | d1998a9fde0a917d6496299f6a97b6bccfdc6724 (patch) | |
tree | 1931d0c875e829620180bf383722c1a69bd1a951 /drivers/watchdog | |
parent | c69cda25c9b59e53a6bc8969ada58942549f5b5d (diff) | |
download | u-boot-d1998a9fde0a917d6496299f6a97b6bccfdc6724.zip u-boot-d1998a9fde0a917d6496299f6a97b6bccfdc6724.tar.gz u-boot-d1998a9fde0a917d6496299f6a97b6bccfdc6724.tar.bz2 |
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/watchdog')
-rw-r--r-- | drivers/watchdog/ast_wdt.c | 4 | ||||
-rw-r--r-- | drivers/watchdog/cdns_wdt.c | 4 | ||||
-rw-r--r-- | drivers/watchdog/orion_wdt.c | 4 | ||||
-rw-r--r-- | drivers/watchdog/sbsa_gwdt.c | 4 | ||||
-rw-r--r-- | drivers/watchdog/sp805_wdt.c | 4 | ||||
-rw-r--r-- | drivers/watchdog/xilinx_tb_wdt.c | 4 | ||||
-rw-r--r-- | drivers/watchdog/xilinx_wwdt.c | 4 |
7 files changed, 14 insertions, 14 deletions
diff --git a/drivers/watchdog/ast_wdt.c b/drivers/watchdog/ast_wdt.c index f6173fd..0b8668d 100644 --- a/drivers/watchdog/ast_wdt.c +++ b/drivers/watchdog/ast_wdt.c @@ -86,7 +86,7 @@ static int ast_wdt_expire_now(struct udevice *dev, ulong flags) return ast_wdt_stop(dev); } -static int ast_wdt_ofdata_to_platdata(struct udevice *dev) +static int ast_wdt_of_to_plat(struct udevice *dev) { struct ast_wdt_priv *priv = dev_get_priv(dev); @@ -125,6 +125,6 @@ U_BOOT_DRIVER(ast_wdt) = { .of_match = ast_wdt_ids, .probe = ast_wdt_probe, .priv_auto = sizeof(struct ast_wdt_priv), - .ofdata_to_platdata = ast_wdt_ofdata_to_platdata, + .of_to_plat = ast_wdt_of_to_plat, .ops = &ast_wdt_ops, }; diff --git a/drivers/watchdog/cdns_wdt.c b/drivers/watchdog/cdns_wdt.c index d4f8240..06de5bd 100644 --- a/drivers/watchdog/cdns_wdt.c +++ b/drivers/watchdog/cdns_wdt.c @@ -228,7 +228,7 @@ static int cdns_wdt_probe(struct udevice *dev) return 0; } -static int cdns_wdt_ofdata_to_platdata(struct udevice *dev) +static int cdns_wdt_of_to_plat(struct udevice *dev) { struct cdns_wdt_priv *priv = dev_get_priv(dev); @@ -261,6 +261,6 @@ U_BOOT_DRIVER(cdns_wdt) = { .of_match = cdns_wdt_ids, .probe = cdns_wdt_probe, .priv_auto = sizeof(struct cdns_wdt_priv), - .ofdata_to_platdata = cdns_wdt_ofdata_to_platdata, + .of_to_plat = cdns_wdt_of_to_plat, .ops = &cdns_wdt_ops, }; diff --git a/drivers/watchdog/orion_wdt.c b/drivers/watchdog/orion_wdt.c index 5eff30e..35e25d4 100644 --- a/drivers/watchdog/orion_wdt.c +++ b/drivers/watchdog/orion_wdt.c @@ -133,7 +133,7 @@ static inline bool save_reg_from_ofdata(struct udevice *dev, int index, return true; } -static int orion_wdt_ofdata_to_platdata(struct udevice *dev) +static int orion_wdt_of_to_plat(struct udevice *dev) { struct orion_wdt_priv *priv = dev_get_priv(dev); @@ -187,6 +187,6 @@ U_BOOT_DRIVER(orion_wdt) = { .of_match = orion_wdt_ids, .probe = orion_wdt_probe, .priv_auto = sizeof(struct orion_wdt_priv), - .ofdata_to_platdata = orion_wdt_ofdata_to_platdata, + .of_to_plat = orion_wdt_of_to_plat, .ops = &orion_wdt_ops, }; diff --git a/drivers/watchdog/sbsa_gwdt.c b/drivers/watchdog/sbsa_gwdt.c index f7b3fbd..7538215 100644 --- a/drivers/watchdog/sbsa_gwdt.c +++ b/drivers/watchdog/sbsa_gwdt.c @@ -93,7 +93,7 @@ static int sbsa_gwdt_probe(struct udevice *dev) return 0; } -static int sbsa_gwdt_ofdata_to_platdata(struct udevice *dev) +static int sbsa_gwdt_of_to_plat(struct udevice *dev) { struct sbsa_gwdt_priv *priv = dev_get_priv(dev); @@ -126,6 +126,6 @@ U_BOOT_DRIVER(sbsa_gwdt) = { .of_match = sbsa_gwdt_ids, .probe = sbsa_gwdt_probe, .priv_auto = sizeof(struct sbsa_gwdt_priv), - .ofdata_to_platdata = sbsa_gwdt_ofdata_to_platdata, + .of_to_plat = sbsa_gwdt_of_to_plat, .ops = &sbsa_gwdt_ops, }; diff --git a/drivers/watchdog/sp805_wdt.c b/drivers/watchdog/sp805_wdt.c index 694a980..3249220 100644 --- a/drivers/watchdog/sp805_wdt.c +++ b/drivers/watchdog/sp805_wdt.c @@ -110,7 +110,7 @@ static int sp805_wdt_probe(struct udevice *dev) return 0; } -static int sp805_wdt_ofdata_to_platdata(struct udevice *dev) +static int sp805_wdt_of_to_plat(struct udevice *dev) { struct sp805_wdt_priv *priv = dev_get_priv(dev); struct clk clk; @@ -143,6 +143,6 @@ U_BOOT_DRIVER(sp805_wdt) = { .of_match = sp805_wdt_ids, .probe = sp805_wdt_probe, .priv_auto = sizeof(struct sp805_wdt_priv), - .ofdata_to_platdata = sp805_wdt_ofdata_to_platdata, + .of_to_plat = sp805_wdt_of_to_plat, .ops = &sp805_wdt_ops, }; diff --git a/drivers/watchdog/xilinx_tb_wdt.c b/drivers/watchdog/xilinx_tb_wdt.c index 46d5d28..98fdb3f 100644 --- a/drivers/watchdog/xilinx_tb_wdt.c +++ b/drivers/watchdog/xilinx_tb_wdt.c @@ -90,7 +90,7 @@ static int xlnx_wdt_probe(struct udevice *dev) return 0; } -static int xlnx_wdt_ofdata_to_platdata(struct udevice *dev) +static int xlnx_wdt_of_to_plat(struct udevice *dev) { struct xlnx_wdt_platdata *plat = dev_get_plat(dev); @@ -124,6 +124,6 @@ U_BOOT_DRIVER(xlnx_wdt) = { .of_match = xlnx_wdt_ids, .probe = xlnx_wdt_probe, .plat_auto = sizeof(struct xlnx_wdt_platdata), - .ofdata_to_platdata = xlnx_wdt_ofdata_to_platdata, + .of_to_plat = xlnx_wdt_of_to_plat, .ops = &xlnx_wdt_ops, }; diff --git a/drivers/watchdog/xilinx_wwdt.c b/drivers/watchdog/xilinx_wwdt.c index 6ce51a3..3e5063c 100644 --- a/drivers/watchdog/xilinx_wwdt.c +++ b/drivers/watchdog/xilinx_wwdt.c @@ -145,7 +145,7 @@ static int xlnx_wwdt_probe(struct udevice *dev) return ret; } -static int xlnx_wwdt_ofdata_to_platdata(struct udevice *dev) +static int xlnx_wwdt_of_to_plat(struct udevice *dev) { struct xlnx_wwdt_platdata *plat = dev_get_plat(dev); @@ -174,6 +174,6 @@ U_BOOT_DRIVER(xlnx_wwdt) = { .probe = xlnx_wwdt_probe, .priv_auto = sizeof(struct xlnx_wwdt_priv), .plat_auto = sizeof(struct xlnx_wwdt_platdata), - .ofdata_to_platdata = xlnx_wwdt_ofdata_to_platdata, + .of_to_plat = xlnx_wwdt_of_to_plat, .ops = &xlnx_wwdt_ops, }; |