zephyr/drivers
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:
5d02614e34a86b549c7707d3d9f0984bc3a5f22a

Signed-off-by: Simon Hein <SHein@baumer.com>
2022-07-26 15:30:24 -04:00
..
adc drivers: Fix coding guidelines MISRAC:2012 Rule 14.4 do-whiles/Zero checks 2022-07-26 15:30:24 -04:00
audio drivers: dmic: remove old intel dmic driver 2022-07-25 13:14:49 -04:00
bbram drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
bluetooth drivers: fix race condition in SPI-based HCI driver 2022-07-19 10:31:36 +02:00
cache everywhere: Fix legacy include paths 2022-07-18 16:16:47 +00:00
can drivers: Fix coding guidelines MISRAC:2012 Rule 14.4 do-whiles/Zero checks 2022-07-26 15:30:24 -04:00
clock_control drivers/clock_control: stm32u5: typo hsi, hse clock source 2022-07-26 07:40:42 -05:00
console drivers: console: ipm_console: Update driver to use DEVICE_DT_GET 2022-07-26 08:49:20 +02:00
coredump everywhere: Fix legacy include paths 2022-07-18 16:16:47 +00:00
counter drivers: counter: Update drivers to use devicetree Kconfig symbol 2022-07-25 09:38:57 +02:00
crypto drivers: crypto_stm32: include soc.h in driver 2022-07-25 11:05:15 +00:00
dac drivers: dac: dac_mcp4725: Update driver to use i2c_dt_spec 2022-07-15 10:00:36 +02:00
dai intel_adsp: move cavs to be a series 2022-07-25 16:50:24 -04:00
debug kconfig: remove Enable from boolean prompts 2022-03-09 15:35:54 +01:00
disk drivers: disk: sdmmc_stm32: Update driver to use gpio_dt_spec 2022-07-04 06:40:02 -05:00
display drivers: gd7965: Use packed structs where appropriate 2022-07-19 13:06:47 -07:00
dma drivers: Fix coding guidelines MISRAC:2012 Rule 14.4 do-whiles/Zero checks 2022-07-26 15:30:24 -04:00
ec_host_cmd_periph drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
edac drivers: use unsigned int for irq_lock() 2022-07-14 14:37:13 -05:00
eeprom drivers: eeprom: Update drivers to use devicetree Kconfig symbol 2022-07-21 06:03:04 -05:00
entropy drivers: entropy: Update drivers to use devicetree Kconfig symbol 2022-07-25 09:39:10 +02:00
espi emul: remove name param from bus register APIs 2022-07-19 15:52:36 -05:00
ethernet drivers: Fix coding guidelines MISRAC:2012 Rule 14.4 do-whiles/Zero checks 2022-07-26 15:30:24 -04:00
flash drivers: Fix coding guidelines MISRAC:2012 Rule 14.4 do-whiles/Zero checks 2022-07-26 15:30:24 -04:00
fpga drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
gpio drivers: Fix coding guidelines MISRAC:2012 Rule 14.4 do-whiles/Zero checks 2022-07-26 15:30:24 -04:00
hwinfo drivers: use unsigned int for irq_lock() 2022-07-14 14:37:13 -05:00
i2c drivers: Fix coding guidelines MISRAC:2012 Rule 14.4 do-whiles/Zero checks 2022-07-26 15:30:24 -04:00
i2s i2s: remove s1000 i2s driver 2022-06-13 16:19:51 -04:00
ieee802154 drivers: Fix coding guidelines MISRAC:2012 Rule 14.4 do-whiles/Zero checks 2022-07-26 15:30:24 -04:00
interrupt_controller drivers: Fix coding guidelines MISRAC:2012 Rule 14.4 do-whiles/Zero checks 2022-07-26 15:30:24 -04:00
ipm intel_adsp: move cavs to be a series 2022-07-25 16:50:24 -04:00
kscan drivers: add mising braces to single line if statements 2022-07-06 11:00:45 -04:00
led drivers: led: tlc59108: Update driver to use i2c_dt_spec 2022-07-18 18:42:52 +02:00
led_strip drivers: Fix coding guidelines MISRAC:2012 Rule 14.4 do-whiles/Zero checks 2022-07-26 15:30:24 -04:00
lora drivers: lora: sx126x: Replace use of DT_INST_LABEL 2022-07-02 18:11:10 -05:00
mbox drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
mdio drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
memc drivers: memc: Update drivers to use devicetree Kconfig symbol 2022-07-25 15:14:08 +02:00
mipi_dsi drivers: mipi: Add MIPI DSI driver for MXRT devices 2022-05-12 09:26:50 -05:00
misc kconfig: guard grove lcd logging macros 2022-07-20 18:28:43 +02:00
mm intel_adsp: move cavs to be a series 2022-07-25 16:50:24 -04:00
modem drivers: Fix coding guidelines MISRAC:2012 Rule 14.4 do-whiles/Zero checks 2022-07-26 15:30:24 -04:00
net drivers: net: canbus: move CAN bus network driver to drivers/net 2022-07-13 10:34:51 +02:00
neural_net drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
pcie drivers: Fix coding guidelines MISRAC:2012 Rule 14.4 do-whiles/Zero checks 2022-07-26 15:30:24 -04:00
peci drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
pinctrl drivers: pinctrl: Update drivers to use devicetree Kconfig symbol 2022-07-25 05:46:42 -05:00
pinmux pinmux: remove s1000 i2s driver 2022-06-13 16:19:51 -04:00
pm_cpu_ops drivers: add mising braces to single line if statements 2022-07-06 11:00:45 -04:00
power_domain power_domain: gpio: improve logging 2022-05-10 17:59:56 -04:00
ps2 drivers: add mising braces to single line if statements 2022-07-06 11:00:45 -04:00
ptp_clock drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
pwm drivers: pwm_nrfx: Refactor pwm_set_cycles to fix on/off issues 2022-07-26 11:11:13 +00:00
regulator drivers: regulator_pmic: Fix compile issue 2022-07-23 09:23:37 -05:00
reset include: drivers: changed API function names for reset controller 2022-05-26 13:02:19 -07:00
sdhc drivers: sdhc: Rework SPI config initialization 2022-06-29 14:59:43 +00:00
sensor ADXL372: add names for KConfig choices 2022-07-25 09:33:54 +00:00
serial drivers: Fix coding guidelines MISRAC:2012 Rule 14.4 do-whiles/Zero checks 2022-07-26 15:30:24 -04:00
spi drivers: Fix coding guidelines MISRAC:2012 Rule 14.4 do-whiles/Zero checks 2022-07-26 15:30:24 -04:00
syscon drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
timer intel_adsp: unify timer registers and simplify timer driver 2022-07-21 17:55:41 -04:00
usb drivers: Fix coding guidelines MISRAC:2012 Rule 14.4 do-whiles/Zero checks 2022-07-26 15:30:24 -04:00
usbc kconfig: guard usbc logging macros 2022-07-20 18:28:43 +02:00
video drivers: video: Update drivers to use devicetree Kconfig symbol 2022-07-19 09:39:49 -07:00
virtualization drivers: virt: ivshmem: Convert to use DEVICE_DT_GET_ONE 2022-07-25 15:16:05 +02:00
w1 everywhere: Fix legacy include paths 2022-07-18 16:16:47 +00:00
watchdog drivers: watchdog: Update drivers to use devicetree Kconfig symbol 2022-07-22 14:06:00 +00:00
wifi drivers: eswifi: Remove unused 'csn' field from struct 2022-07-06 12:42:45 -05:00
xen everywhere: Fix legacy include paths 2022-07-18 16:16:47 +00:00
CMakeLists.txt drivers: w1 introduce 1-wire api and common code 2022-07-05 23:06:45 +02:00
Kconfig drivers: w1 introduce 1-wire api and common code 2022-07-05 23:06:45 +02:00