aboutsummaryrefslogtreecommitdiff
path: root/drivers/rng/meson-rng.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/rng/meson-rng.c')
-rw-r--r--drivers/rng/meson-rng.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/rng/meson-rng.c b/drivers/rng/meson-rng.c
index bebfce40a63..5a4f45ad5af 100644
--- a/drivers/rng/meson-rng.c
+++ b/drivers/rng/meson-rng.c
@@ -11,7 +11,7 @@
#include <rng.h>
#include <asm/io.h>
-struct meson_rng_platdata {
+struct meson_rng_plat {
fdt_addr_t base;
struct clk clk;
};
@@ -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_plat(dev);
+ struct meson_rng_plat *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_plat(dev);
+ struct meson_rng_plat *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_plat(dev);
+ struct meson_rng_plat *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_of_to_plat(struct udevice *dev)
{
- struct meson_rng_platdata *pdata = dev_get_plat(dev);
+ struct meson_rng_plat *pdata = dev_get_plat(dev);
int err;
pdata->base = dev_read_addr(dev);
@@ -116,6 +116,6 @@ U_BOOT_DRIVER(meson_rng) = {
.ops = &meson_rng_ops,
.probe = meson_rng_probe,
.remove = meson_rng_remove,
- .plat_auto = sizeof(struct meson_rng_platdata),
+ .plat_auto = sizeof(struct meson_rng_plat),
.of_to_plat = meson_rng_of_to_plat,
};