Fix chip/kinetis_spi.c:473:23: error: unused function 'spi_getreg8'
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
6fd08787b6
commit
658dfeaf40
@ -128,8 +128,6 @@ static inline uint16_t spi_getreg16(struct kinetis_spidev_s *priv,
|
|||||||
uint8_t offset);
|
uint8_t offset);
|
||||||
static inline void spi_putreg16(struct kinetis_spidev_s *priv,
|
static inline void spi_putreg16(struct kinetis_spidev_s *priv,
|
||||||
uint8_t offset, uint16_t value);
|
uint8_t offset, uint16_t value);
|
||||||
static inline uint8_t spi_getreg8(struct kinetis_spidev_s *priv,
|
|
||||||
uint8_t offset);
|
|
||||||
static inline void spi_putreg8(struct kinetis_spidev_s *priv,
|
static inline void spi_putreg8(struct kinetis_spidev_s *priv,
|
||||||
uint8_t offset, uint8_t value);
|
uint8_t offset, uint8_t value);
|
||||||
static inline uint16_t spi_readword(struct kinetis_spidev_s *priv);
|
static inline uint16_t spi_readword(struct kinetis_spidev_s *priv);
|
||||||
@ -464,27 +462,6 @@ static inline void spi_putreg16(struct kinetis_spidev_s *priv,
|
|||||||
putreg16(value, priv->spibase + offset);
|
putreg16(value, priv->spibase + offset);
|
||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Name: spi_getreg8
|
|
||||||
*
|
|
||||||
* Description:
|
|
||||||
* Get the 8 bit contents of the SPI register at offset
|
|
||||||
*
|
|
||||||
* Input Parameters:
|
|
||||||
* priv - private SPI device structure
|
|
||||||
* offset - offset to the register of interest
|
|
||||||
*
|
|
||||||
* Returned Value:
|
|
||||||
* The contents of the 8-bit register
|
|
||||||
*
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
static inline uint8_t spi_getreg8(struct kinetis_spidev_s *priv,
|
|
||||||
uint8_t offset)
|
|
||||||
{
|
|
||||||
return getreg8(priv->spibase + offset);
|
|
||||||
}
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: spi_putreg8
|
* Name: spi_putreg8
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user