drivers: fix k_thread_create timeout argument

Use the named representation for no-wait to future-proof against a
change to the representation of timeout values.

Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
This commit is contained in:
Peter Bigot 2019-09-19 07:16:34 -05:00 committed by Ioannis Glaropoulos
commit d566254e3f
19 changed files with 19 additions and 19 deletions

View file

@ -104,7 +104,7 @@ int lsm9ds0_gyro_init_interrupt(struct device *dev)
k_thread_create(&data->thread, data->thread_stack,
CONFIG_LSM9DS0_GYRO_THREAD_STACK_SIZE,
lsm9ds0_gyro_thread_main, dev, NULL, NULL,
K_PRIO_COOP(10), 0, 0);
K_PRIO_COOP(10), 0, K_NO_WAIT);
data->gpio_drdy = device_get_binding(config->gpio_drdy_dev_name);
if (!data->gpio_drdy) {