zephyr/drivers/flash
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
..
flash_stm32.c flash: stm32: distinguish read/write for flash range valid 2017-06-16 16:18:12 -04:00
flash_stm32.h flash: stm32: distinguish read/write for flash range valid 2017-06-16 16:18:12 -04:00
flash_stm32f3x_priv.c drivers: convert to using newly introduced integer sized types 2017-04-21 10:06:48 -05:00
flash_stm32f3x.c drivers: convert to using newly introduced integer sized types 2017-04-21 10:06:48 -05:00
flash_stm32f3x.h drivers: convert to using newly introduced integer sized types 2017-04-21 10:06:48 -05:00
flash_stm32f4x.c flash: stm32: distinguish read/write for flash range valid 2017-06-16 16:18:12 -04:00
flash_stm32l4x.c flash: stm32l4x: Cleanup use of C99 types 2017-06-22 13:47:28 -04:00
Kconfig Drivers: flash: NRF5x: synchronous mode for co-operation with BLE radio 2017-06-28 12:29:50 +02:00
Kconfig.stm32 flash: Rework and add flash device support for STM32L4x SoCs 2017-05-19 10:06:48 -04:00
Makefile Drivers: flash: NRF5x: synchronous mode for co-operation with BLE radio 2017-06-28 12:29:50 +02:00
soc_flash_mcux.c drivers: convert to using newly introduced integer sized types 2017-04-21 10:06:48 -05:00
soc_flash_nrf5.c Drivers: flash: NRF5x: synchronous mode for co-operation with BLE radio 2017-06-28 12:29:50 +02:00
soc_flash_qmsi.c drivers, net: Clean up semaphore initialization 2017-07-27 15:23:07 -04:00
spi_flash_w25qxxdv_defs.h license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
spi_flash_w25qxxdv.c drivers, net: Clean up semaphore initialization 2017-07-27 15:23:07 -04:00
spi_flash_w25qxxdv.h drivers: convert to using newly introduced integer sized types 2017-04-21 10:06:48 -05:00