zephyr: replace zephyr integer types with C99 types

git grep -l 'u\(8\|16\|32\|64\)_t' | \
		xargs sed -i "s/u\(8\|16\|32\|64\)_t/uint\1_t/g"
	git grep -l 's\(8\|16\|32\|64\)_t' | \
		xargs sed -i "s/s\(8\|16\|32\|64\)_t/int\1_t/g"

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2020-05-27 11:26:57 -05:00 committed by Kumar Gala
commit a1b77fd589
2364 changed files with 32505 additions and 32505 deletions

View file

@ -17,12 +17,12 @@
#if defined(CONFIG_FLASH_PAGE_LAYOUT)
struct layout_data {
u32_t area_idx;
u32_t area_off;
u32_t area_len;
uint32_t area_idx;
uint32_t area_off;
uint32_t area_len;
void *ret; /* struct flash_area* or struct flash_sector* */
u32_t ret_idx;
u32_t ret_len;
uint32_t ret_idx;
uint32_t ret_len;
int status;
};
#endif /* CONFIG_FLASH_PAGE_LAYOUT */
@ -48,7 +48,7 @@ void flash_area_foreach(flash_area_cb_t user_cb, void *user_data)
}
}
int flash_area_open(u8_t id, const struct flash_area **fap)
int flash_area_open(uint8_t id, const struct flash_area **fap)
{
const struct flash_area *area;
@ -115,7 +115,7 @@ static bool should_bail(const struct flash_pages_info *info,
* flash_area_get_sectors(). A lot of this can be inlined once
* flash_area_to_sectors() is removed.
*/
static int flash_area_layout(int idx, u32_t *cnt, void *ret,
static int flash_area_layout(int idx, uint32_t *cnt, void *ret,
flash_page_cb cb, struct layout_data *cb_data)
{
struct device *flash_dev;
@ -169,7 +169,7 @@ static bool get_sectors_cb(const struct flash_pages_info *info, void *datav)
return true;
}
int flash_area_get_sectors(int idx, u32_t *cnt, struct flash_sector *ret)
int flash_area_get_sectors(int idx, uint32_t *cnt, struct flash_sector *ret)
{
struct layout_data data;
@ -240,7 +240,7 @@ int flash_area_erase(const struct flash_area *fa, off_t off, size_t len)
return rc;
}
u8_t flash_area_align(const struct flash_area *fa)
uint8_t flash_area_align(const struct flash_area *fa)
{
struct device *dev;

View file

@ -106,14 +106,14 @@ static int flash_sync(struct stream_flash_ctx *ctx)
return rc;
}
int stream_flash_buffered_write(struct stream_flash_ctx *ctx, const u8_t *data,
int stream_flash_buffered_write(struct stream_flash_ctx *ctx, const uint8_t *data,
size_t len, bool flush)
{
int processed = 0;
int rc = 0;
int buf_empty_bytes;
size_t fill_length;
u8_t filler;
uint8_t filler;
if (!ctx || !data) {
return -EFAULT;
@ -179,7 +179,7 @@ size_t stream_flash_bytes_written(struct stream_flash_ctx *ctx)
}
int stream_flash_init(struct stream_flash_ctx *ctx, struct device *fdev,
u8_t *buf, size_t buf_len, size_t offset, size_t size,
uint8_t *buf, size_t buf_len, size_t offset, size_t size,
stream_flash_callback_t cb)
{
if (!ctx || !fdev || !buf) {