From b71b86ed03e48075d508b4075f2fe60df774861a Mon Sep 17 00:00:00 2001 From: Kumar Gala Date: Thu, 22 Jun 2017 12:13:01 -0500 Subject: [PATCH] spi: Cleanup use of C99 types We introduced some see C99 types, so convert them over to the Zephyr types. Signed-off-by: Kumar Gala --- drivers/spi/spi_context.h | 6 +++--- drivers/spi/spi_dw.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/spi/spi_context.h b/drivers/spi/spi_context.h index d774019efd2..be2ea268c0b 100644 --- a/drivers/spi/spi_context.h +++ b/drivers/spi/spi_context.h @@ -150,7 +150,7 @@ static inline void spi_context_buffers_setup(struct spi_context *ctx, size_t tx_count, struct spi_buf *rx_bufs, size_t rx_count, - uint8_t dfs) + u8_t dfs) { SYS_LOG_DBG("tx_bufs %p (%zu) - rx_bufs %p (%zu) - %u", tx_bufs, tx_count, rx_bufs, rx_count, dfs); @@ -184,7 +184,7 @@ static inline void spi_context_buffers_setup(struct spi_context *ctx, } static ALWAYS_INLINE -void spi_context_update_tx(struct spi_context *ctx, uint8_t dfs) +void spi_context_update_tx(struct spi_context *ctx, u8_t dfs) { if (!ctx->tx_len) { return; @@ -215,7 +215,7 @@ bool spi_context_tx_on(struct spi_context *ctx) } static ALWAYS_INLINE -void spi_context_update_rx(struct spi_context *ctx, uint8_t dfs) +void spi_context_update_rx(struct spi_context *ctx, u8_t dfs) { if (!ctx->rx_len) { return; diff --git a/drivers/spi/spi_dw.c b/drivers/spi/spi_dw.c index 81d794aeb65..d8d5c6c2168 100644 --- a/drivers/spi/spi_dw.c +++ b/drivers/spi/spi_dw.c @@ -44,7 +44,7 @@ #include "spi_dw.h" #include "spi_context.h" -static void completed(struct device *dev, uint8_t error) +static void completed(struct device *dev, u8_t error) { const struct spi_dw_config *info = dev->config->config_info; struct spi_dw_data *spi = dev->driver_data;