drivers: convert to using newly introduced integer sized types
Convert code to use u{8,16,32,64}_t and s{8,16,32,64}_t instead of C99 integer types. Jira: ZEP-2051 Change-Id: I08f51e2bfd475f6245771c1bd2df7ffc744c48c4 Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
e547533435
commit
ccad5bf3e3
231 changed files with 3200 additions and 3200 deletions
|
@ -16,7 +16,7 @@
|
|||
extern struct bmg160_device_data bmg160_data;
|
||||
|
||||
static void bmg160_gpio_callback(struct device *port, struct gpio_callback *cb,
|
||||
uint32_t pin)
|
||||
u32_t pin)
|
||||
{
|
||||
struct bmg160_device_data *bmg160 =
|
||||
CONTAINER_OF(cb, struct bmg160_device_data, gpio_cb);
|
||||
|
@ -35,7 +35,7 @@ static int bmg160_anymotion_set(struct device *dev,
|
|||
sensor_trigger_handler_t handler)
|
||||
{
|
||||
struct bmg160_device_data *bmg160 = dev->driver_data;
|
||||
uint8_t anymotion_en = 0;
|
||||
u8_t anymotion_en = 0;
|
||||
|
||||
if (handler) {
|
||||
anymotion_en = BMG160_ANY_EN_X |
|
||||
|
@ -74,8 +74,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) {
|
||||
uint16_t any_th_dps, range_dps;
|
||||
uint8_t any_th_reg_val;
|
||||
u16_t any_th_dps, range_dps;
|
||||
u8_t any_th_reg_val;
|
||||
|
||||
any_th_dps = sensor_rad_to_degrees(val);
|
||||
range_dps = BMG160_SCALE_TO_RANGE(bmg160->scale);
|
||||
|
@ -149,7 +149,7 @@ static int bmg160_handle_dataready_int(struct device *dev)
|
|||
static void bmg160_handle_int(void *arg)
|
||||
{
|
||||
struct device *dev = (struct device *)arg;
|
||||
uint8_t status_int[4];
|
||||
u8_t status_int[4];
|
||||
|
||||
if (bmg160_read(dev, BMG160_REG_INT_STATUS0, status_int, 4) < 0) {
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue