diff options
| author | Simon Glass <[email protected]> | 2020-12-03 16:55:23 -0700 |
|---|---|---|
| committer | Simon Glass <[email protected]> | 2020-12-13 16:51:09 -0700 |
| commit | 8a8d24bdf174851ebb8607f359d54b72e3283b97 (patch) | |
| tree | 89fe2b9fd0c33209ce154170f9bda61f624dd9cd /lib | |
| parent | b012ff1f1b0d662587dcf8707fe7cbf1c1f35d2f (diff) | |
dm: treewide: Rename ..._platdata variables to just ..._plat
Try to maintain some consistency between these variables by using _plat as
a suffix for them.
Signed-off-by: Simon Glass <[email protected]>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/acpi/acpi_device.c | 2 | ||||
| -rw-r--r-- | lib/efi_driver/efi_block_device.c | 10 | ||||
| -rw-r--r-- | lib/smbios.c | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/lib/acpi/acpi_device.c b/lib/acpi/acpi_device.c index 52b21cea706..8efa8e9a535 100644 --- a/lib/acpi/acpi_device.c +++ b/lib/acpi/acpi_device.c @@ -724,7 +724,7 @@ static void acpi_device_write_spi(struct acpi_ctx *ctx, const struct acpi_spi *s static int acpi_device_set_spi(const struct udevice *dev, struct acpi_spi *spi, const char *scope) { - struct dm_spi_slave_platdata *plat; + struct dm_spi_slave_plat *plat; struct spi_slave *slave = dev_get_parent_priv(dev); plat = dev_get_parent_plat(slave->dev); diff --git a/lib/efi_driver/efi_block_device.c b/lib/efi_driver/efi_block_device.c index 5cccc0ce4da..0937e3595a4 100644 --- a/lib/efi_driver/efi_block_device.c +++ b/lib/efi_driver/efi_block_device.c @@ -42,7 +42,7 @@ * handle handle of the controller on which this driver is installed * io block io protocol proxied by this driver */ -struct efi_blk_platdata { +struct efi_blk_plat { efi_handle_t handle; struct efi_block_io *io; }; @@ -59,7 +59,7 @@ struct efi_blk_platdata { static ulong efi_bl_read(struct udevice *dev, lbaint_t blknr, lbaint_t blkcnt, void *buffer) { - struct efi_blk_platdata *plat = dev_get_plat(dev); + struct efi_blk_plat *plat = dev_get_plat(dev); struct efi_block_io *io = plat->io; efi_status_t ret; @@ -88,7 +88,7 @@ static ulong efi_bl_read(struct udevice *dev, lbaint_t blknr, lbaint_t blkcnt, static ulong efi_bl_write(struct udevice *dev, lbaint_t blknr, lbaint_t blkcnt, const void *buffer) { - struct efi_blk_platdata *plat = dev_get_plat(dev); + struct efi_blk_plat *plat = dev_get_plat(dev); struct efi_block_io *io = plat->io; efi_status_t ret; @@ -140,7 +140,7 @@ static int efi_bl_bind(efi_handle_t handle, void *interface) struct efi_object *obj = efi_search_obj(handle); struct efi_block_io *io = interface; int disks; - struct efi_blk_platdata *plat; + struct efi_blk_plat *plat; EFI_PRINT("%s: handle %p, interface %p\n", __func__, handle, io); @@ -196,7 +196,7 @@ U_BOOT_DRIVER(efi_blk) = { .name = "efi_blk", .id = UCLASS_BLK, .ops = &efi_blk_ops, - .plat_auto = sizeof(struct efi_blk_platdata), + .plat_auto = sizeof(struct efi_blk_plat), }; /* EFI driver operators */ diff --git a/lib/smbios.c b/lib/smbios.c index 4bd16556e36..1e10fa84207 100644 --- a/lib/smbios.c +++ b/lib/smbios.c @@ -229,7 +229,7 @@ static void smbios_write_type4_dm(struct smbios_type4 *t, ofnode node) uclass_find_first_device(UCLASS_CPU, &cpu); if (cpu) { - struct cpu_platdata *plat = dev_get_parent_plat(cpu); + struct cpu_plat *plat = dev_get_parent_plat(cpu); if (plat->family) processor_family = plat->family; |
