From 55f7473ba01d3c59027183d3af38f85789a0d942 Mon Sep 17 00:00:00 2001 From: Abdelatif Guettouche Date: Sat, 12 Sep 2020 14:49:16 +0100 Subject: [PATCH] arch/xtensa/src/esp32/esp32_spiflash.c: #if0-out unused functions. Signed-off-by: Abdelatif Guettouche --- arch/xtensa/src/esp32/esp32_spiflash.c | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/arch/xtensa/src/esp32/esp32_spiflash.c b/arch/xtensa/src/esp32/esp32_spiflash.c index 9d938c91e5..9dff0c78c2 100644 --- a/arch/xtensa/src/esp32/esp32_spiflash.c +++ b/arch/xtensa/src/esp32/esp32_spiflash.c @@ -121,6 +121,14 @@ static int esp32_writedata(FAR struct esp32_spiflash_s *priv, uint32_t addr, const uint8_t *buffer, uint32_t size); static int esp32_readdata(FAR struct esp32_spiflash_s *priv, uint32_t addr, uint8_t *buffer, uint32_t size); +#if 0 +static int esp32_read_highstatus(FAR struct esp32_spiflash_s *priv, + uint32_t *status); +#endif +#if 0 +static int esp32_write_status(FAR struct esp32_spiflash_s *priv, + uint32_t status); +#endif /* MTD driver methods */ @@ -536,8 +544,9 @@ static int esp32_wait_idle(FAR struct esp32_spiflash_s *priv) * ****************************************************************************/ -int esp32_read_highstatus(FAR struct esp32_spiflash_s *priv, - uint32_t *status) +#if 0 +static int esp32_read_highstatus(FAR struct esp32_spiflash_s *priv, + uint32_t *status) { uint32_t regval; @@ -555,6 +564,7 @@ int esp32_read_highstatus(FAR struct esp32_spiflash_s *priv, return 0; } +#endif /**************************************************************************** * Name: esp32_write_status @@ -571,7 +581,9 @@ int esp32_read_highstatus(FAR struct esp32_spiflash_s *priv, * ****************************************************************************/ -int esp32_write_status(FAR struct esp32_spiflash_s *priv, uint32_t status) +#if 0 +static int esp32_write_status(FAR struct esp32_spiflash_s *priv, + uint32_t status) { if (esp32_wait_idle(priv)) { @@ -592,6 +604,7 @@ int esp32_write_status(FAR struct esp32_spiflash_s *priv, uint32_t status) return 0; } +#endif /**************************************************************************** * Name: esp32_enable_write