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 <[email protected]>
Acked-by: Jens Wiklander <[email protected]>
Acked-by: Sahil Malhotra <[email protected]>
  • Loading branch information
sriramsriram-msft authored and jforissier committed Aug 4, 2023
1 parent c4d300d commit 16c5597
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 @@ -375,7 +375,7 @@ static void ls_dspi_end(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 16c5597

Please sign in to comment.