summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorStefan Herbrechtsmeier <[email protected]>2023-04-28 14:38:48 +0200
committerJagan Teki <[email protected]>2023-07-13 13:59:57 +0530
commit47c32734a67e0493bd4d14c57a520d247fec6cf5 (patch)
tree7ddb6e260890ab2f1611f417a5449b4b666634e6 /drivers
parentad77009d22866a708b25e596a8b59e207157af71 (diff)
spi: pl022: Rename flush into pl022_spi_flush
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 <[email protected]> Reviewed-by: Jagan Teki <[email protected]>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/spi/pl022_spi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/spi/pl022_spi.c b/drivers/spi/pl022_spi.c
index 2986c4eb5ac..a6a0c552aa0 100644
--- a/drivers/spi/pl022_spi.c
+++ b/drivers/spi/pl022_spi.c
@@ -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);