coccinelle: standardize k_sleep calls with integer timeouts

Re-run with updated script to convert integer literal delay arguments to
k_sleep to use the standard timeout macros.

Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
This commit is contained in:
Peter Bigot 2019-10-06 14:02:31 -05:00 committed by Anas Nashif
commit 6e5db350b2
130 changed files with 229 additions and 229 deletions

View file

@ -38,7 +38,7 @@ static int ccs811_sample_fetch(struct device *dev, enum sensor_channel chan)
break;
}
k_sleep(100);
k_sleep(K_MSEC(100));
}
if (!(status & CCS811_STATUS_DATA_READY)) {
@ -180,7 +180,7 @@ int ccs811_init(struct device *dev)
GPIO_DIR_OUT);
gpio_pin_write(drv_data->gpio, CONFIG_CCS811_GPIO_RESET_PIN_NUM, 1);
k_sleep(1);
k_sleep(K_MSEC(1));
#endif
/*
@ -192,7 +192,7 @@ int ccs811_init(struct device *dev)
GPIO_DIR_OUT);
gpio_pin_write(drv_data->gpio, CONFIG_CCS811_GPIO_WAKEUP_PIN_NUM, 0);
k_sleep(1);
k_sleep(K_MSEC(1));
#endif
/* Switch device to application mode */