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 <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2017-06-22 12:13:01 -05:00 committed by Anas Nashif
commit b71b86ed03
2 changed files with 4 additions and 4 deletions

View file

@ -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;

View file

@ -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;