zephyr/drivers/sensor/fxas21002
Leandro Pereira 732424f065 drivers, net: Clean up semaphore initialization
Change the common "init with 0" + "give" idiom to "init with 1".  This
won't change the behavior or performance, but should decrease the size
ever so slightly.

This change has been performed mechanically with the following
Coccinelle script:

    @@
    expression SEM;
    expression LIMIT;
    expression TIMEOUT;
    @@

    - k_sem_init(SEM, 0, LIMIT);
    - k_sem_give(SEM);
    + k_sem_init(SEM, 1, LIMIT);

Signed-off-by: Leandro Pereira <leandro.pereira@intel.com>
2017-07-27 15:23:07 -04:00
..
Kconfig i2c: mcux: Convert to supporting device tree 2017-07-19 14:28:08 -05:00
Makefile sensor: fxas21002: Add gyroscope driver 2017-03-30 21:19:53 +00:00
fxas21002.c drivers, net: Clean up semaphore initialization 2017-07-27 15:23:07 -04:00
fxas21002.h drivers: use K_THREAD_STACK_DEFINE macros 2017-06-09 18:53:28 -04:00
fxas21002_trigger.c drivers: sensor: use k_thread_create() 2017-05-11 20:24:22 -04:00