zephyr/drivers/i2c
Simon Hein d0921018fc drivers: Fix coding guidelines MISRAC:2012 Rule 14.4 do-whiles/Zero checks
MISRA C:2012 Rule 14.4 (The controlling expression of an if statement
and the controlling expression of an iteration-statement shall have
essentially Boolean type.)

Use `do { ... } while (false)' instead of `do { ... } while (0)'.
Use comparisons with zero instead of implicitly testing integers.

The commit is a subset of the original auditable-branch commit:
5d02614e34

Signed-off-by: Simon Hein <SHein@baumer.com>
2022-07-26 15:30:24 -04:00
..
target i2c: Update API terminology 2022-06-29 17:51:31 +02:00
CMakeLists.txt i2c: Update API terminology 2022-06-29 17:51:31 +02:00
Kconfig i2c: Update API terminology 2022-06-29 17:51:31 +02:00
Kconfig.b91
Kconfig.cc13xx_cc26xx
Kconfig.dw
Kconfig.esp32
Kconfig.gd32
Kconfig.gpio
Kconfig.i2c_emul
Kconfig.it8xxx2 ITE: drivers/i2c: Add command queue mode 2022-07-13 10:15:32 +02:00
Kconfig.litex
Kconfig.lpc11u6x
Kconfig.npcx
Kconfig.nrfx
Kconfig.rcar
Kconfig.sam0 i2c: sam0: Set driver Kconfig default based on devicetree 2022-07-01 15:05:55 -05:00
Kconfig.sbcon
Kconfig.sifive
Kconfig.stm32 i2c: Update API terminology 2022-06-29 17:51:31 +02:00
Kconfig.tca954x drivers: i2c: tca954X: Enable driver if needed 2022-07-04 16:53:41 +02:00
Kconfig.test
Kconfig.xec
i2c-priv.h
i2c_b91.c i2c: Update API terminology 2022-06-29 17:51:31 +02:00
i2c_bitbang.c
i2c_bitbang.h
i2c_cc13xx_cc26xx.c drivers: adjust cc13xx_cc26xx drivers for hal_ti update 2022-07-08 09:37:43 +02:00
i2c_cc32xx.c i2c: Update API terminology 2022-06-29 17:51:31 +02:00
i2c_common.c
i2c_dw.c i2c: Update API terminology 2022-06-29 17:51:31 +02:00
i2c_dw.h i2c: Update API terminology 2022-06-29 17:51:31 +02:00
i2c_dw_registers.h
i2c_emul.c emul: remove name param from bus register APIs 2022-07-19 15:52:36 -05:00
i2c_esp32.c drivers: i2c: esp32: Rework SDA/SDL pins as gpios in devicetree 2022-07-26 12:10:58 -05:00
i2c_gd32.c drivers: i2c: improve gd32 i2c driver stability 2022-07-25 15:14:21 +02:00
i2c_gecko.c i2c: Update API terminology 2022-06-29 17:51:31 +02:00
i2c_gpio.c i2c: Update API terminology 2022-06-29 17:51:31 +02:00
i2c_handlers.c i2c: Update API terminology 2022-06-29 17:51:31 +02:00
i2c_imx.c i2c: Update API terminology 2022-06-29 17:51:31 +02:00
i2c_ite_enhance.c ITE: drivers/i2c: Add command queue mode not allowed condition 2022-07-20 11:08:56 +02:00
i2c_ite_it8xxx2.c i2c: Update API terminology 2022-06-29 17:51:31 +02:00
i2c_litex.c
i2c_ll_stm32.c drivers: Fix coding guidelines MISRAC:2012 Rule 14.4 do-whiles/Zero checks 2022-07-26 15:30:24 -04:00
i2c_ll_stm32.h drivers: i2c_ll_stm32_v2: add support for second target address 2022-07-01 11:35:28 +02:00
i2c_ll_stm32_v1.c i2c: Update API terminology 2022-06-29 17:51:31 +02:00
i2c_ll_stm32_v2.c drivers: i2c_ll_stm32_v2: add support for second target address 2022-07-01 11:35:28 +02:00
i2c_lpc11u6x.c drivers: i2c: lpc11u6x: Remove DT_LABEL usage 2022-06-30 10:32:33 +02:00
i2c_lpc11u6x.h drivers: i2c: lpc11u6x: Remove DT_LABEL usage 2022-06-30 10:32:33 +02:00
i2c_mchp_xec.c i2c: xec: Update driver to use gpio_dt_spec 2022-07-08 10:57:03 +02:00
i2c_mchp_xec_v2.c i2c: Update API terminology 2022-06-29 17:51:31 +02:00
i2c_mcux.c i2c: Update API terminology 2022-06-29 17:51:31 +02:00
i2c_mcux_flexcomm.c i2c: Update API terminology 2022-06-29 17:51:31 +02:00
i2c_mcux_lpi2c.c drivers: i2c: Fix deprecated use of I2C_MODE_MASTER in mcux lpi2c driver 2022-07-01 15:37:12 -05:00
i2c_nios2.c i2c: Update API terminology 2022-06-29 17:51:31 +02:00
i2c_npcx_controller.c drivers: add mising braces to single line if statements 2022-07-06 11:00:45 -04:00
i2c_npcx_controller.h
i2c_npcx_port.c i2c: Update API terminology 2022-06-29 17:51:31 +02:00
i2c_nrfx_twi.c drivers: i2c: nrfx: Fix i2c_recover_bus implementation for PINCTRL 2022-07-08 20:05:49 +00:00
i2c_nrfx_twim.c drivers: i2c: nrfx_twim: constify twim_config 2022-07-19 12:25:13 +00:00
i2c_rcar.c i2c: Update API terminology 2022-06-29 17:51:31 +02:00
i2c_rv32m1_lpi2c.c i2c: Update API terminology 2022-06-29 17:51:31 +02:00
i2c_sam0.c drivers: Fix coding guidelines MISRAC:2012 Rule 14.4 do-whiles/Zero checks 2022-07-26 15:30:24 -04:00
i2c_sam4l_twim.c i2c: Update API terminology 2022-06-29 17:51:31 +02:00
i2c_sam_twi.c i2c: Update API terminology 2022-06-29 17:51:31 +02:00
i2c_sam_twihs.c i2c: Update API terminology 2022-06-29 17:51:31 +02:00
i2c_sbcon.c
i2c_shell.c
i2c_sifive.c i2c: Update API terminology 2022-06-29 17:51:31 +02:00
i2c_tca954x.c drivers: i2c: i2c_tca954x: Update driver to use i2c_dt_spec 2022-07-15 10:05:40 +02:00
i2c_test.c