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

@ -14,7 +14,7 @@
LOG_MODULE_REGISTER(FXAS21002, CONFIG_SENSOR_LOG_LEVEL);
/* Sample period in microseconds, indexed by output data rate encoding (DR) */
static const u32_t sample_period[] = {
static const uint32_t sample_period[] = {
1250, 2500, 5000, 10000, 20000, 40000, 80000, 80000
};
@ -22,8 +22,8 @@ static int fxas21002_sample_fetch(struct device *dev, enum sensor_channel chan)
{
const struct fxas21002_config *config = dev->config_info;
struct fxas21002_data *data = dev->driver_data;
u8_t buffer[FXAS21002_MAX_NUM_BYTES];
s16_t *raw;
uint8_t buffer[FXAS21002_MAX_NUM_BYTES];
int16_t *raw;
int ret = 0;
int i;
@ -58,10 +58,10 @@ exit:
return ret;
}
static void fxas21002_convert(struct sensor_value *val, s16_t raw,
static void fxas21002_convert(struct sensor_value *val, int16_t raw,
enum fxas21002_range range)
{
s32_t micro_rad;
int32_t micro_rad;
/* Convert units to micro radians per second.*/
micro_rad = (raw * 62500) >> range;
@ -77,7 +77,7 @@ static int fxas21002_channel_get(struct device *dev, enum sensor_channel chan,
struct fxas21002_data *data = dev->driver_data;
int start_channel;
int num_channels;
s16_t *raw;
int16_t *raw;
int ret;
int i;
@ -134,7 +134,7 @@ int fxas21002_get_power(struct device *dev, enum fxas21002_power *power)
{
const struct fxas21002_config *config = dev->config_info;
struct fxas21002_data *data = dev->driver_data;
u8_t val = *power;
uint8_t val = *power;
if (i2c_reg_read_byte(data->i2c, config->i2c_address,
FXAS21002_REG_CTRLREG1,
@ -159,11 +159,11 @@ int fxas21002_set_power(struct device *dev, enum fxas21002_power power)
power);
}
u32_t fxas21002_get_transition_time(enum fxas21002_power start,
uint32_t fxas21002_get_transition_time(enum fxas21002_power start,
enum fxas21002_power end,
u8_t dr)
uint8_t dr)
{
u32_t transition_time;
uint32_t transition_time;
/* If not transitioning to active mode, then don't need to wait */
if (end != FXAS21002_POWER_ACTIVE) {
@ -188,9 +188,9 @@ static int fxas21002_init(struct device *dev)
{
const struct fxas21002_config *config = dev->config_info;
struct fxas21002_data *data = dev->driver_data;
u32_t transition_time;
u8_t whoami;
u8_t ctrlreg1;
uint32_t transition_time;
uint8_t whoami;
uint8_t ctrlreg1;
/* Get the I2C device */
data->i2c = device_get_binding(config->i2c_name);