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

@ -20,8 +20,8 @@ static int lsm303dlhc_sample_fetch(struct device *dev,
{
const struct lsm303dlhc_magn_config *config = dev->config_info;
struct lsm303dlhc_magn_data *drv_data = dev->driver_data;
u8_t magn_buf[6];
u8_t status;
uint8_t magn_buf[6];
uint8_t status;
/* Check data ready flag */
if (i2c_reg_read_byte(drv_data->i2c,
@ -53,7 +53,7 @@ static int lsm303dlhc_sample_fetch(struct device *dev,
}
static void lsm303dlhc_convert(struct sensor_value *val,
s64_t raw_val)
int64_t raw_val)
{
val->val1 = raw_val / LSM303DLHC_MAGN_LSB_GAUSS;
val->val2 = (1000000 * raw_val / LSM303DLHC_MAGN_LSB_GAUSS) % 1000000;

View file

@ -67,13 +67,13 @@
struct lsm303dlhc_magn_data {
struct device *i2c;
s16_t magn_x;
s16_t magn_y;
s16_t magn_z;
int16_t magn_x;
int16_t magn_y;
int16_t magn_z;
};
struct lsm303dlhc_magn_config {
char *i2c_name;
u8_t i2c_address;
uint8_t i2c_address;
};
#endif /* _SENSOR_LSM303DLHC_MAGN_ */