zephyr/drivers/ethernet
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 driver: eth_stm32_hal: Initial STM32 HAL based Ethernet driver 2017-07-12 12:53:51 +03:00
Kconfig.dw drivers: make ethernet init prio depend on NET_L2_ETHERNET 2017-02-02 14:43:51 +00:00
Kconfig.enc28j60 spell: fix Kconfig help typos: /boards /drivers 2017-04-21 21:31:30 +00:00
Kconfig.mcux drivers/ethernet/eth_mcux: Fix selection of promisc mode IPv6 workaround 2017-05-25 15:09:46 -05:00
Kconfig.sam_gmac kconfig: fixed stray Kconfig variables 2017-07-06 10:34:41 -05:00
Kconfig.stm32_hal driver: eth_stm32_hal: make phy address configurable 2017-07-12 12:53:51 +03:00
Makefile driver: eth_stm32_hal: Initial STM32 HAL based Ethernet driver 2017-07-12 12:53:51 +03:00
eth_dw.c ethernet: fix Kconfig option for ETHERNET 2017-07-05 12:43:13 -04:00
eth_dw_priv.h drivers: eth_dw: Port to new IP stack 2017-05-04 11:57:22 -04:00
eth_enc28j60.c drivers, net: Clean up semaphore initialization 2017-07-27 15:23:07 -04:00
eth_enc28j60_priv.h drivers: use K_THREAD_STACK_DEFINE macros 2017-06-09 18:53:28 -04:00
eth_mcux.c drivers: ethernet: mcux: fix build warning 2017-07-26 09:49:45 -05:00
eth_sam_gmac.c drivers: eth_sam_gmac: Fix fragment ordering in RX 2017-05-19 23:52:28 +03:00
eth_sam_gmac_priv.h drivers: eth_sam_gmac: clean up after net_nbuf to net_pkt change 2017-04-28 15:01:08 +03:00
eth_stm32_hal.c driver: eth_stm32_hal: make phy address configurable 2017-07-12 12:53:51 +03:00
eth_stm32_hal_priv.h driver: eth_stm32_hal: Initial STM32 HAL based Ethernet driver 2017-07-12 12:53:51 +03:00
phy_sam_gmac.c net: convert to using newly introduced integer sized types 2017-04-21 09:30:38 -05:00
phy_sam_gmac.h net: convert to using newly introduced integer sized types 2017-04-21 09:30:38 -05:00