dm: treewide: Rename 'platdata' variables to just 'plat'
We use 'priv' for private data but often use 'platdata' for platform data. We can't really use 'pdata' since that is ambiguous (it could mean private or platform data). Rename some of the latter variables to end with 'plat' for consistency. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -64,7 +64,7 @@ struct atftmr_timer_platdata {
|
||||
|
||||
static u64 atftmr_timer_get_count(struct udevice *dev)
|
||||
{
|
||||
struct atftmr_timer_platdata *plat = dev->platdata;
|
||||
struct atftmr_timer_platdata *plat = dev->plat;
|
||||
struct atftmr_timer_regs *const regs = plat->regs;
|
||||
u32 val;
|
||||
val = readl(®s->t3_counter);
|
||||
@@ -73,7 +73,7 @@ static u64 atftmr_timer_get_count(struct udevice *dev)
|
||||
|
||||
static int atftmr_timer_probe(struct udevice *dev)
|
||||
{
|
||||
struct atftmr_timer_platdata *plat = dev->platdata;
|
||||
struct atftmr_timer_platdata *plat = dev->plat;
|
||||
struct atftmr_timer_regs *const regs = plat->regs;
|
||||
u32 cr;
|
||||
writel(0, ®s->t3_load);
|
||||
@@ -111,7 +111,7 @@ U_BOOT_DRIVER(altera_timer) = {
|
||||
.id = UCLASS_TIMER,
|
||||
.of_match = ag101p_timer_ids,
|
||||
.ofdata_to_platdata = atftme_timer_ofdata_to_platdata,
|
||||
.platdata_auto = sizeof(struct atftmr_timer_platdata),
|
||||
.plat_auto = sizeof(struct atftmr_timer_platdata),
|
||||
.probe = atftmr_timer_probe,
|
||||
.ops = &ag101p_timer_ops,
|
||||
};
|
||||
|
||||
@@ -34,7 +34,7 @@ struct altera_timer_platdata {
|
||||
|
||||
static u64 altera_timer_get_count(struct udevice *dev)
|
||||
{
|
||||
struct altera_timer_platdata *plat = dev->platdata;
|
||||
struct altera_timer_platdata *plat = dev->plat;
|
||||
struct altera_timer_regs *const regs = plat->regs;
|
||||
u32 val;
|
||||
|
||||
@@ -49,7 +49,7 @@ static u64 altera_timer_get_count(struct udevice *dev)
|
||||
|
||||
static int altera_timer_probe(struct udevice *dev)
|
||||
{
|
||||
struct altera_timer_platdata *plat = dev->platdata;
|
||||
struct altera_timer_platdata *plat = dev->plat;
|
||||
struct altera_timer_regs *const regs = plat->regs;
|
||||
|
||||
writel(0, ®s->status);
|
||||
@@ -88,7 +88,7 @@ U_BOOT_DRIVER(altera_timer) = {
|
||||
.id = UCLASS_TIMER,
|
||||
.of_match = altera_timer_ids,
|
||||
.ofdata_to_platdata = altera_timer_ofdata_to_platdata,
|
||||
.platdata_auto = sizeof(struct altera_timer_platdata),
|
||||
.plat_auto = sizeof(struct altera_timer_platdata),
|
||||
.probe = altera_timer_probe,
|
||||
.ops = &altera_timer_ops,
|
||||
};
|
||||
|
||||
@@ -106,7 +106,7 @@ U_BOOT_DRIVER(atcpit100_timer) = {
|
||||
.id = UCLASS_TIMER,
|
||||
.of_match = atcpit_timer_ids,
|
||||
.ofdata_to_platdata = atcpit_timer_ofdata_to_platdata,
|
||||
.platdata_auto = sizeof(struct atcpit_timer_platdata),
|
||||
.plat_auto = sizeof(struct atcpit_timer_platdata),
|
||||
.probe = atcpit_timer_probe,
|
||||
.ops = &atcpit_timer_ops,
|
||||
};
|
||||
|
||||
@@ -81,7 +81,7 @@ U_BOOT_DRIVER(atmel_pit) = {
|
||||
.id = UCLASS_TIMER,
|
||||
.of_match = atmel_pit_ids,
|
||||
.ofdata_to_platdata = atmel_pit_ofdata_to_platdata,
|
||||
.platdata_auto = sizeof(struct atmel_pit_platdata),
|
||||
.plat_auto = sizeof(struct atmel_pit_platdata),
|
||||
.probe = atmel_pit_probe,
|
||||
.ops = &atmel_pit_ops,
|
||||
};
|
||||
|
||||
@@ -167,7 +167,7 @@ U_BOOT_DRIVER(rockchip_rk3368_timer) = {
|
||||
.ops = &rockchip_timer_ops,
|
||||
.priv_auto = sizeof(struct rockchip_timer_priv),
|
||||
#if CONFIG_IS_ENABLED(OF_PLATDATA)
|
||||
.platdata_auto = sizeof(struct rockchip_timer_plat),
|
||||
.plat_auto = sizeof(struct rockchip_timer_plat),
|
||||
#endif
|
||||
.ofdata_to_platdata = rockchip_clk_ofdata_to_platdata,
|
||||
};
|
||||
|
||||
@@ -103,7 +103,7 @@ int timer_timebase_fallback(struct udevice *dev)
|
||||
if (!cpu)
|
||||
return -ENODEV;
|
||||
|
||||
cpu_plat = dev_get_parent_platdata(cpu);
|
||||
cpu_plat = dev_get_parent_plat(cpu);
|
||||
if (!cpu_plat)
|
||||
return -ENODEV;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user