spi: Remove useless restrictions

Signed-off-by: Shoukui Zhang <zhangshoukui@xiaomi.com>
This commit is contained in:
Shoukui Zhang 2023-10-26 17:04:46 +08:00 committed by Alan Carvalho de Assis
parent 52583fc17e
commit 9ffac12465
3 changed files with 0 additions and 9 deletions

View file

@ -35,8 +35,6 @@
#include <nuttx/mutex.h>
#ifdef CONFIG_SPI_BITBANG
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
@ -559,4 +557,3 @@ void spi_destroy_bitbang(FAR struct spi_dev_s *dev)
kmm_free(dev);
}
#endif /* CONFIG_SPI_BITBANG */

View file

@ -37,8 +37,6 @@
#include <nuttx/mutex.h>
#include <nuttx/spi/spi_transfer.h>
#ifdef CONFIG_SPI_DRIVER
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
@ -393,4 +391,3 @@ int spi_register(FAR struct spi_dev_s *spi, int bus)
return -ENOMEM;
}
#endif /* CONFIG_SPI_DRIVER */

View file

@ -33,8 +33,6 @@
#include <nuttx/spi/spi.h>
#include <nuttx/spi/spi_transfer.h>
#ifdef CONFIG_SPI_EXCHANGE
/****************************************************************************
* Public Functions
****************************************************************************/
@ -143,4 +141,3 @@ int spi_transfer(FAR struct spi_dev_s *spi, FAR struct spi_sequence_s *seq)
return ret;
}
#endif /* CONFIG_SPI_EXCHANGE */