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:
parent
7572203f54
commit
b71b86ed03
2 changed files with 4 additions and 4 deletions
|
@ -150,7 +150,7 @@ static inline void spi_context_buffers_setup(struct spi_context *ctx,
|
||||||
size_t tx_count,
|
size_t tx_count,
|
||||||
struct spi_buf *rx_bufs,
|
struct spi_buf *rx_bufs,
|
||||||
size_t rx_count,
|
size_t rx_count,
|
||||||
uint8_t dfs)
|
u8_t dfs)
|
||||||
{
|
{
|
||||||
SYS_LOG_DBG("tx_bufs %p (%zu) - rx_bufs %p (%zu) - %u",
|
SYS_LOG_DBG("tx_bufs %p (%zu) - rx_bufs %p (%zu) - %u",
|
||||||
tx_bufs, tx_count, rx_bufs, rx_count, dfs);
|
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
|
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) {
|
if (!ctx->tx_len) {
|
||||||
return;
|
return;
|
||||||
|
@ -215,7 +215,7 @@ bool spi_context_tx_on(struct spi_context *ctx)
|
||||||
}
|
}
|
||||||
|
|
||||||
static ALWAYS_INLINE
|
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) {
|
if (!ctx->rx_len) {
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
#include "spi_dw.h"
|
#include "spi_dw.h"
|
||||||
#include "spi_context.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;
|
const struct spi_dw_config *info = dev->config->config_info;
|
||||||
struct spi_dw_data *spi = dev->driver_data;
|
struct spi_dw_data *spi = dev->driver_data;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue