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

@ -33,7 +33,7 @@ static inline void setup_int(struct device *dev,
}
static void bmg160_gpio_callback(struct device *port, struct gpio_callback *cb,
u32_t pin)
uint32_t pin)
{
struct bmg160_device_data *bmg160 =
CONTAINER_OF(cb, struct bmg160_device_data, gpio_cb);
@ -52,7 +52,7 @@ static int bmg160_anymotion_set(struct device *dev,
sensor_trigger_handler_t handler)
{
struct bmg160_device_data *bmg160 = dev->driver_data;
u8_t anymotion_en = 0U;
uint8_t anymotion_en = 0U;
if (handler) {
anymotion_en = BMG160_ANY_EN_X |
@ -91,8 +91,8 @@ int bmg160_slope_config(struct device *dev, enum sensor_attribute attr,
struct bmg160_device_data *bmg160 = dev->driver_data;
if (attr == SENSOR_ATTR_SLOPE_TH) {
u16_t any_th_dps, range_dps;
u8_t any_th_reg_val;
uint16_t any_th_dps, range_dps;
uint8_t any_th_reg_val;
any_th_dps = sensor_rad_to_degrees(val);
range_dps = BMG160_SCALE_TO_RANGE(bmg160->scale);
@ -166,7 +166,7 @@ static int bmg160_handle_dataready_int(struct device *dev)
static void bmg160_handle_int(void *arg)
{
struct device *dev = (struct device *)arg;
u8_t status_int[4];
uint8_t status_int[4];
if (bmg160_read(dev, BMG160_REG_INT_STATUS0, status_int, 4) < 0) {
return;