zephyr/drivers/i2c
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
..
i2c_atmel_sam3.c
i2c_bitbang.c
i2c_bitbang.h
i2c_dw_registers.h
i2c_dw.c
i2c_dw.h
i2c_gpio.c
i2c_ll_stm32_v1.c
i2c_ll_stm32_v2.c
i2c_ll_stm32.c i2c: stm32: Update driver to get I2C port base address from DT 2017-07-19 14:28:08 -05:00
i2c_ll_stm32.h
i2c_mcux.c i2c: mcux: Convert to supporting device tree 2017-07-19 14:28:08 -05:00
i2c_nrf5.c
i2c_qmsi_ss.c drivers, net: Clean up semaphore initialization 2017-07-27 15:23:07 -04:00
i2c_qmsi.c drivers, net: Clean up semaphore initialization 2017-07-27 15:23:07 -04:00
i2c_sbcon.c
Kconfig i2c: mcux: Convert to supporting device tree 2017-07-19 14:28:08 -05:00
Kconfig.gpio
Kconfig.sbcon
Makefile
twihs_sam.c