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:
@@ -118,6 +118,6 @@ U_BOOT_DRIVER(cpu_at91_drv) = {
|
||||
.of_match = at91_cpu_ids,
|
||||
.ops = &at91_cpu_ops,
|
||||
.probe = at91_cpu_probe,
|
||||
.platdata_auto = sizeof(struct at91_cpu_platdata),
|
||||
.plat_auto = sizeof(struct at91_cpu_platdata),
|
||||
.flags = DM_FLAG_PRE_RELOC,
|
||||
};
|
||||
|
||||
@@ -425,7 +425,7 @@ static const struct cpu_ops bmips_cpu_ops = {
|
||||
/* BMIPS CPU driver */
|
||||
int bmips_cpu_bind(struct udevice *dev)
|
||||
{
|
||||
struct cpu_platdata *plat = dev_get_parent_platdata(dev);
|
||||
struct cpu_platdata *plat = dev_get_parent_plat(dev);
|
||||
|
||||
plat->cpu_id = dev_read_u32_default(dev, "reg", -1);
|
||||
plat->device_id = read_c0_prid();
|
||||
|
||||
@@ -115,7 +115,7 @@ int cpu_get_vendor(const struct udevice *dev, char *buf, int size)
|
||||
U_BOOT_DRIVER(cpu_bus) = {
|
||||
.name = "cpu_bus",
|
||||
.id = UCLASS_SIMPLE_BUS,
|
||||
.per_child_platdata_auto = sizeof(struct cpu_platdata),
|
||||
.per_child_plat_auto = sizeof(struct cpu_platdata),
|
||||
};
|
||||
|
||||
static int uclass_cpu_init(struct uclass *uc)
|
||||
|
||||
@@ -64,7 +64,7 @@ static const struct cpu_ops cpu_sandbox_ops = {
|
||||
static int cpu_sandbox_bind(struct udevice *dev)
|
||||
{
|
||||
int ret;
|
||||
struct cpu_platdata *plat = dev_get_parent_platdata(dev);
|
||||
struct cpu_platdata *plat = dev_get_parent_plat(dev);
|
||||
|
||||
/* first examine the property in current cpu node */
|
||||
ret = dev_read_u32(dev, "timebase-frequency", &plat->timebase_freq);
|
||||
|
||||
@@ -230,6 +230,6 @@ U_BOOT_DRIVER(cpu_imx8_drv) = {
|
||||
.of_match = cpu_imx8_ids,
|
||||
.ops = &cpu_imx8_ops,
|
||||
.probe = imx8_cpu_probe,
|
||||
.platdata_auto = sizeof(struct cpu_imx_platdata),
|
||||
.plat_auto = sizeof(struct cpu_imx_platdata),
|
||||
.flags = DM_FLAG_PRE_RELOC,
|
||||
};
|
||||
|
||||
@@ -91,7 +91,7 @@ static int riscv_cpu_get_count(const struct udevice *dev)
|
||||
|
||||
static int riscv_cpu_bind(struct udevice *dev)
|
||||
{
|
||||
struct cpu_platdata *plat = dev_get_parent_platdata(dev);
|
||||
struct cpu_platdata *plat = dev_get_parent_plat(dev);
|
||||
struct driver *drv;
|
||||
int ret;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user