From 8633c985041115d1d0aca3edf64581ec081ce3e8 Mon Sep 17 00:00:00 2001 From: Sriram Sriram Date: Mon, 24 Jul 2023 12:44:43 -0700 Subject: [PATCH] core: drivers: ls_dspi: Make dspi_flush_fifo() static Make dspi_flush_fifo() static as it gets exposed via ls_dspi_ops structure. Signed-off-by: Sriram Sriram Acked-by: Jens Wiklander Acked-by: Sahil Malhotra --- core/drivers/ls_dspi.c | 2 +- core/include/drivers/ls_dspi.h | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/core/drivers/ls_dspi.c b/core/drivers/ls_dspi.c index e545eb84f88..011251b515c 100644 --- a/core/drivers/ls_dspi.c +++ b/core/drivers/ls_dspi.c @@ -387,7 +387,7 @@ static void ls_dspi_flush(struct spi_chip *chip) * Clear RX and TX FIFO * dspi_data: DSPI controller chip instance */ -void dspi_flush_fifo(struct ls_dspi_data *dspi_data) +static void dspi_flush_fifo(struct ls_dspi_data *dspi_data) { unsigned int mcr_val = 0; diff --git a/core/include/drivers/ls_dspi.h b/core/include/drivers/ls_dspi.h index 2d11a6b5448..0c83f2b41c2 100644 --- a/core/include/drivers/ls_dspi.h +++ b/core/include/drivers/ls_dspi.h @@ -71,7 +71,4 @@ struct ls_dspi_data { */ TEE_Result ls_dspi_init(struct ls_dspi_data *dspi_data); -/* Flush RX and TX FIFO */ -void dspi_flush_fifo(struct ls_dspi_data *dspi_data); - #endif /* __DRIVERS_LS_DSPI_H */