]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
spi: pl022: Rename flush into pl022_spi_flush
authorStefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
Fri, 28 Apr 2023 12:38:48 +0000 (14:38 +0200)
committerJagan Teki <jagan@edgeble.ai>
Thu, 13 Jul 2023 08:29:57 +0000 (13:59 +0530)
Rename the flush function into pl022_spi_flush to avoid conflicting
types with previous declaration of the function in stdio.h header.

Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
drivers/spi/pl022_spi.c

index 2986c4eb5ac433f4db9890da2f890b4282edcb79..a6a0c552aa0d1c8de3eae846e0d46945cdface8a 100644 (file)
@@ -107,7 +107,7 @@ static int pl022_spi_probe(struct udevice *bus)
        return 0;
 }
 
-static void flush(struct pl022_spi_slave *ps)
+static void pl022_spi_flush(struct pl022_spi_slave *ps)
 {
        do {
                while (readw(ps->base + SSP_SR) & SSP_SR_MASK_RNE)
@@ -126,7 +126,7 @@ static int pl022_spi_claim_bus(struct udevice *dev)
        reg |= SSP_CR1_MASK_SSE;
        writew(reg, ps->base + SSP_CR1);
 
-       flush(ps);
+       pl022_spi_flush(ps);
 
        return 0;
 }
@@ -137,7 +137,7 @@ static int pl022_spi_release_bus(struct udevice *dev)
        struct pl022_spi_slave *ps = dev_get_priv(bus);
        u16 reg;
 
-       flush(ps);
+       pl022_spi_flush(ps);
 
        /* Disable the SPI hardware */
        reg = readw(ps->base + SSP_CR1);