From: Bernhard Beschow <[email protected]> The next patches will introduce eSDHC device models (big and little endian). Prepare for that by renaming the functions. Also, this makes the code have similar conventions as in Linux and U-Boot.
Signed-off-by: Bernhard Beschow <[email protected]> Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Tested-by: BALATON Zoltan <[email protected]> Message-ID: <[email protected]> Signed-off-by: Philippe Mathieu-Daudé <[email protected]> --- hw/sd/sdhci.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/hw/sd/sdhci.c b/hw/sd/sdhci.c index 779f411babe..531dd3c2911 100644 --- a/hw/sd/sdhci.c +++ b/hw/sd/sdhci.c @@ -1659,7 +1659,7 @@ static void sdhci_bus_class_init(ObjectClass *klass, const void *data) #define ESDHC_PRNSTS_SDSTB (1 << 3) #define ESDHC_PRNSTS_CLOCK_GATE_OFF BIT(7) -static uint64_t usdhc_read(void *opaque, hwaddr offset, unsigned size) +static uint64_t esdhc_read(void *opaque, hwaddr offset, unsigned size) { SDHCIState *s = SYSBUS_SDHCI(opaque); uint32_t ret; @@ -1673,7 +1673,7 @@ static uint64_t usdhc_read(void *opaque, hwaddr offset, unsigned size) /* * For a detailed explanation on the following bit * manipulation code see comments in a similar part of - * usdhc_write() + * esdhc_write() */ hostctl1 = SDHC_DMA_TYPE(s->hostctl1) << (8 - 3); @@ -1716,7 +1716,7 @@ static uint64_t usdhc_read(void *opaque, hwaddr offset, unsigned size) } static void -usdhc_write(void *opaque, hwaddr offset, uint64_t val, unsigned size) +esdhc_write(void *opaque, hwaddr offset, uint64_t val, unsigned size) { SDHCIState *s = SYSBUS_SDHCI(opaque); uint8_t hostctl1; @@ -1872,8 +1872,8 @@ usdhc_write(void *opaque, hwaddr offset, uint64_t val, unsigned size) } static const MemoryRegionOps usdhc_mmio_ops = { - .read = usdhc_read, - .write = usdhc_write, + .read = esdhc_read, + .write = esdhc_write, .valid = { .min_access_size = 1, .max_access_size = 4, -- 2.52.0
