This allows to drop annoying (char *) casts when setting the host
name of struct sdhci_host.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
if (!mmc_host)
return -ENOMEM;
- mmc_host->name = (char *)name;
+ mmc_host->name = name;
dm_pci_read_config32(dev, PCI_BASE_ADDRESS_0, &iobase);
mmc_host->ioaddr = (void *)iobase;
mmc_host->quirks = 0;
return -EINVAL;
host->ioaddr = ioremap(addr, size);
- host->name = (char *)dev->name;
+ host->name = dev->name;
host->quirks = SDHCI_QUIRK_NO_HISPD_BIT | SDHCI_QUIRK_NO_CD;
host->bus_width = fdtdec_get_int(gd->fdt_blob, dev->of_offset,
"bus-width", 4);
{
struct sdhci_host *host = dev_get_priv(dev);
- host->name = (char *)dev->name;
+ host->name = dev->name;
host->ioaddr = (void *)dev_get_addr(dev);
return 0;
};
struct sdhci_host {
- char *name;
+ const char *name;
void *ioaddr;
unsigned int quirks;
unsigned int host_caps;