zephyr/drivers/gpio
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 cc2650: Add GPIO driver. 2017-06-16 16:18:12 -04:00
Kconfig.atmel_sam3
Kconfig.cc32xx
Kconfig.cc2650 cc2650: Add GPIO driver. 2017-06-16 16:18:12 -04:00
Kconfig.cmsdk_ahb
Kconfig.dw doc: spelling fixes in Kconfig files 2017-06-12 19:40:51 -04:00
Kconfig.fe310
Kconfig.mcux
Kconfig.mmio32
Kconfig.nrf5
Kconfig.pcal9535a
Kconfig.pulpino
Kconfig.qmsi
Kconfig.sch
Kconfig.stm32
Makefile cc2650: Add GPIO driver. 2017-06-16 16:18:12 -04:00
gpio_atmel_sam3.c
gpio_cc32xx.c
gpio_cc2650.c drivers: gpio: Fix Coverity static scan issues 2017-07-20 11:50:51 -05:00
gpio_cmsdk_ahb.c
gpio_cmsdk_ahb.h
gpio_dw.c
gpio_dw.h
gpio_dw_registers.h
gpio_fe310.c
gpio_mcux.c
gpio_mmio32.c
gpio_nrf5.c
gpio_pcal9535a.c
gpio_pcal9535a.h
gpio_pulpino.c
gpio_qmsi.c drivers, net: Clean up semaphore initialization 2017-07-27 15:23:07 -04:00
gpio_qmsi_ss.c drivers, net: Clean up semaphore initialization 2017-07-27 15:23:07 -04:00
gpio_sch.c
gpio_sch.h drivers: use K_THREAD_STACK_DEFINE macros 2017-06-09 18:53:28 -04:00
gpio_stm32.c stm32: clean up after completion of transition to ll Clock control 2017-06-02 14:11:13 -04:00
gpio_stm32.h drivers: pinmux: stm32: Clean up after rework 2017-07-26 15:16:52 -05:00
gpio_utils.h