Skip to content

Commit

Permalink
core: drivers: ls_dspi: Make dspi_flush_fifo() static
Browse files Browse the repository at this point in the history
Make dspi_flush_fifo() static as it gets exposed via ls_dspi_ops
structure.

Signed-off-by: Sriram Sriram <sriramsriram@microsoft.com>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
Acked-by: Sahil Malhotra <sahil.malhotra@nxp.com>
  • Loading branch information
sriramsriram-msft committed Jul 28, 2023
1 parent 42ccc27 commit 8633c98
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion core/drivers/ls_dspi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
3 changes: 0 additions & 3 deletions core/include/drivers/ls_dspi.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit 8633c98

Please sign in to comment.