openocd/src/jtag/drivers
Antonio Borneo 28c24a5c41 openocd: fix simple cases of Yoda condition
There are ~900 Yoda conditions to be aligned to the coding style.
For recurrent Yoda conditions it's preferable using a trivial
script in order to minimize the review effort.
E.g. comparison of uppercase macro/enum with lowercase variable:
	- ...(ERROR_OK == retval)...
	+ ...(retval == ERROR_OK)...

Patch generated automatically with the command:
	sed -i \
	's/(\([A-Z][A-Z0-9_]*\) \([=!]=\) \([a-z][a-z0-9_]*\))/(\3 \2 \1)/g' \
	$(find src/ -type f)

While there, remove the braces {} around a single statement block
to prevent warning from checkpatch.

Change-Id: If585b0a4b4578879c87b2dd74d9e0025e275ec6b
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/6354
Tested-by: jenkins
Reviewed-by: Xiang W <wxjstz@126.com>
2021-07-20 14:55:24 +01:00
..
libjaylink@9aa7a5957c libjaylink: Update to 0.2.0 release 2020-07-26 20:11:11 +01:00
OpenULINK openocd: fix doxygen parameters of functions 2021-01-13 11:33:53 +00:00
usb_blaster jtag: fix some minor typo 2021-05-22 10:06:38 +01:00
versaloon openocd: fix simple cases of Yoda condition 2021-07-20 14:55:24 +01:00
amt_jtagaccel.c jtag: avoid checking for non NULL pointer to free it 2020-09-05 18:42:20 +01:00
arm-jtag-ew.c Cleanup of config/includes. 2021-05-01 14:35:09 +01:00
at91rm9200.c jtag/drivers: replace perror() with LOG_ERROR() 2020-07-14 00:39:39 +01:00
bcm2835gpio.c jtag/drivers: replace perror() with LOG_ERROR() 2020-07-14 00:39:39 +01:00
bitbang.c jtag/swd: rename CamelCase macros 2021-07-02 17:10:31 +01:00
bitbang.h bitbang: split jtag and swd operations 2020-07-14 00:38:21 +01:00
bitq.c jtag: use proper format with uint32_t 2020-09-05 17:12:25 +01:00
bitq.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
buspirate.c drivers/buspirate: use macros in place of const variables 2021-07-20 14:53:51 +01:00
cmsis_dap_usb_bulk.c jtag: fix some minor typo 2021-05-22 10:06:38 +01:00
cmsis_dap_usb_hid.c Cleanup of config/includes. 2021-05-01 14:35:09 +01:00
cmsis_dap.c jtag/swd: rename CamelCase macros 2021-07-02 17:10:31 +01:00
cmsis_dap.h cmsis_dap: add support for swo commands 2021-06-04 17:45:30 +01:00
driver.c jtag: make cmd_queue_scan_field_clone public 2018-10-16 11:58:17 +01:00
dummy.c adapter: switch from struct jtag_interface to adapter_driver 2020-01-14 11:39:37 +00:00
ep93xx.c jtag/drivers: replace perror() with LOG_ERROR() 2020-07-14 00:39:39 +01:00
ft232r.c jtag: declare local symbols as static 2020-11-04 17:39:22 +00:00
ftdi.c drivers/ftdi: Group adapter commands 2021-07-20 14:51:08 +01:00
gw16012.c jtag: declare local symbols as static 2020-11-04 17:39:22 +00:00
imx_gpio.c jtag/drivers: replace perror() with LOG_ERROR() 2020-07-14 00:39:39 +01:00
jlink.c jtag/swd: rename CamelCase macros 2021-07-02 17:10:31 +01:00
jtag_dpi.c jtag: fix some minor typo 2021-05-22 10:06:38 +01:00
jtag_usb_common.c Cleanup of config/includes. 2021-05-01 14:35:09 +01:00
jtag_usb_common.h Cleanup of config/includes. 2021-05-01 14:35:09 +01:00
jtag_vpi.c Cleanup of config/includes. 2021-05-01 14:35:09 +01:00
kitprog.c jtag/swd: rename CamelCase macros 2021-07-02 17:10:31 +01:00
libftdi_helper.h openocd: add support for libftdi 1.5 2020-11-04 17:38:45 +00:00
libusb_helper.c jtag: rename CamelCase symbols 2021-07-02 17:10:15 +01:00
libusb_helper.h jtag: rename CamelCase symbols 2021-07-02 17:10:15 +01:00
linuxgpiod.c drivers/linuxgpiod: add led 2020-07-26 20:15:34 +01:00
Makefile.am openocd: drop dependency from libusb0 2021-04-05 23:25:34 +01:00
Makefile.rlink Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
minidriver_imp.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
mpsse.c Cleanup of config/includes. 2021-05-01 14:35:09 +01:00
mpsse.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
nulink_usb.c jtag: fix some minor typo 2021-05-22 10:06:38 +01:00
opendous.c jtag: declare local symbols as static 2020-11-04 17:39:22 +00:00
openjtag.c openocd: add support for libftdi 1.5 2020-11-04 17:38:45 +00:00
osbdm.c jtag: fix minor typos 2020-07-26 20:14:37 +01:00
parport.c openocd: fix simple cases of Yoda condition 2021-07-20 14:55:24 +01:00
presto.c openocd: add support for libftdi 1.5 2020-11-04 17:38:45 +00:00
remote_bitbang.c Add remote bitbang write buffer. 2021-06-13 19:58:08 +01:00
rlink_call.m4 coding style: src: remove empty lines at end of text files 2020-05-02 15:40:21 +01:00
rlink_dtc_cmd.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
rlink_ep1_cmd.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
rlink_init.m4 Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
rlink_speed_table.c coding style: src: remove empty lines at end of text files 2020-05-02 15:40:21 +01:00
rlink_st7.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
rlink.c jtag: rename CamelCase symbols 2021-07-02 17:10:15 +01:00
rlink.h Cleanup of config/includes. 2021-05-01 14:35:09 +01:00
rshim.c jtag: fix minor typos 2020-07-26 20:14:37 +01:00
stlink_usb.c target/cortex_m: rename CamelCase symbol 2021-07-20 14:52:38 +01:00
sysfsgpio.c jtag: fix minor typos 2020-07-26 20:14:37 +01:00
ti_icdi_usb.c hla: API: specify that read_reg/write_reg use regsel as parameter 2020-11-15 21:07:14 +00:00
ulink.c Cleanup of config/includes. 2021-05-01 14:35:09 +01:00
usbprog.c drivers/usbprog: switch to libusb1 2021-04-05 23:25:02 +01:00
vsllink.c openocd: fix simple cases of Yoda condition 2021-07-20 14:55:24 +01:00
xds110.c openocd: fix simple cases of Yoda condition 2021-07-20 14:55:24 +01:00
xlnx-pcie-xvc.c jtag/swd: rename CamelCase macros 2021-07-02 17:10:31 +01:00