summaryrefslogtreecommitdiff
path: root/drivers/rng/meson-rng.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-12-03 16:55:20 -0700
committerSimon Glass <sjg@chromium.org>2020-12-13 16:51:09 -0700
commitc69cda25c9b59e53a6bc8969ada58942549f5b5d (patch)
tree8c84d1773465eb8e06cbbaeb710daa6217f5618d /drivers/rng/meson-rng.c
parent4f50086ad6d69c355a07389fb436c64c92ec614a (diff)
downloadu-boot-c69cda25c9b59e53a6bc8969ada58942549f5b5d.tar.gz
u-boot-c69cda25c9b59e53a6bc8969ada58942549f5b5d.tar.bz2
u-boot-c69cda25c9b59e53a6bc8969ada58942549f5b5d.zip
dm: treewide: Rename dev_get_platdata() to dev_get_plat()
Rename this to be consistent with the change from 'platdata'. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/rng/meson-rng.c')
-rw-r--r--drivers/rng/meson-rng.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/rng/meson-rng.c b/drivers/rng/meson-rng.c
index e7febc42cd..1d0b540b7b 100644
--- a/drivers/rng/meson-rng.c
+++ b/drivers/rng/meson-rng.c
@@ -26,7 +26,7 @@ struct meson_rng_platdata {
*/
static int meson_rng_read(struct udevice *dev, void *data, size_t len)
{
- struct meson_rng_platdata *pdata = dev_get_platdata(dev);
+ struct meson_rng_platdata *pdata = dev_get_plat(dev);
char *buffer = (char *)data;
while (len) {
@@ -52,7 +52,7 @@ static int meson_rng_read(struct udevice *dev, void *data, size_t len)
*/
static int meson_rng_probe(struct udevice *dev)
{
- struct meson_rng_platdata *pdata = dev_get_platdata(dev);
+ struct meson_rng_platdata *pdata = dev_get_plat(dev);
int err;
err = clk_enable(&pdata->clk);
@@ -70,7 +70,7 @@ static int meson_rng_probe(struct udevice *dev)
*/
static int meson_rng_remove(struct udevice *dev)
{
- struct meson_rng_platdata *pdata = dev_get_platdata(dev);
+ struct meson_rng_platdata *pdata = dev_get_plat(dev);
return clk_disable(&pdata->clk);
}
@@ -83,7 +83,7 @@ static int meson_rng_remove(struct udevice *dev)
*/
static int meson_rng_ofdata_to_platdata(struct udevice *dev)
{
- struct meson_rng_platdata *pdata = dev_get_platdata(dev);
+ struct meson_rng_platdata *pdata = dev_get_plat(dev);
int err;
pdata->base = dev_read_addr(dev);