zephyr/drivers/adc
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 adc: Introduce new mcux adc16 driver 2017-07-19 14:28:08 -05:00
Makefile adc: Introduce new mcux adc16 driver 2017-07-19 14:28:08 -05:00
adc_dw.c drivers: convert to using newly introduced integer sized types 2017-04-21 10:06:48 -05:00
adc_dw.h drivers: convert to using newly introduced integer sized types 2017-04-21 10:06:48 -05:00
adc_mcux_adc16.c adc: Introduce new mcux adc16 driver 2017-07-19 14:28:08 -05:00
adc_qmsi.c drivers, net: Clean up semaphore initialization 2017-07-27 15:23:07 -04:00
adc_qmsi_ss.c drivers, net: Clean up semaphore initialization 2017-07-27 15:23:07 -04:00
adc_ti_adc108s102.c drivers: convert to using newly introduced integer sized types 2017-04-21 10:06:48 -05:00
adc_ti_adc108s102.h drivers: convert to using newly introduced integer sized types 2017-04-21 10:06:48 -05:00