openocd/src/flash/nor
Christopher Head 6ec2ec4d32 src/flash/nor/virtual: handle null pointers
Either of protect and protect_check driver callbacks can be NULL. In
virtual_protect, reuse flash_driver_protect which checks for that case
and generates a nice error message and return code. In
virtual_protect_check, there is no corresponding flash_driver_*
function, so add the NULL check directly.

Change-Id: Ia63d85ede640a8382cf5cad0760f5d1ffe4d7cfe
Signed-off-by: Christopher Head <chead@zaber.com>
Reviewed-on: http://openocd.zylin.com/5782
Tested-by: jenkins
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
2020-08-09 15:30:23 +01:00
..
aduc702x.c flash/nor: Use proper data types in driver API 2020-07-07 05:23:54 +01:00
aducm360.c flash/nor: Use proper data types in driver API 2020-07-07 05:23:54 +01:00
ambiqmicro.c flash/nor/ambiqmicro: Use 'bool' data type 2020-07-08 22:05:27 +01:00
at91sam3.c flash: fix typos and duplicated words 2020-07-26 20:13:22 +01:00
at91sam4.c flash: fix typos and duplicated words 2020-07-26 20:13:22 +01:00
at91sam4l.c flash/nor: Use proper data types in driver API 2020-07-07 05:23:54 +01:00
at91sam7.c flash: fix typos and duplicated words 2020-07-26 20:13:22 +01:00
at91samd.c flash: fix typos and duplicated words 2020-07-26 20:13:22 +01:00
ath79.c flash/nor/ath79: Use 'bool' data type 2020-07-08 22:05:40 +01:00
atsame5.c flash: fix typos and duplicated words 2020-07-26 20:13:22 +01:00
atsamv.c flash: fix typos and duplicated words 2020-07-26 20:13:22 +01:00
avrf.c flash/nor: Use proper data types in driver API 2020-07-07 05:23:54 +01:00
bluenrg-x.c flash/nor: Use proper data types in driver API 2020-07-07 05:23:54 +01:00
bluenrg-x.h bluenrg-x: simplyfied the driver 2020-03-07 15:31:09 +00:00
cc26xx.c flash/nor: Use proper data types in driver API 2020-07-07 05:23:54 +01:00
cc26xx.h flash/nor: Add support for TI CC26xx/CC13xx flash 2018-06-15 20:06:25 +01:00
cc3220sf.c flash/nor: Use proper data types in driver API 2020-07-07 05:23:54 +01:00
cc3220sf.h flash/nor: Add support for TI CC3220SF internal flash 2018-06-06 15:38:25 +01:00
cfi.c flash: fix typos and duplicated words 2020-07-26 20:13:22 +01:00
cfi.h flash/nor/cfi: Use 'bool' data type 2020-07-08 22:05:52 +01:00
core.c flash/nor: Use proper data types in driver API 2020-07-07 05:23:54 +01:00
core.h flash: fix typos and duplicated words 2020-07-26 20:13:22 +01:00
driver.h flash: fix typos and duplicated words 2020-07-26 20:13:22 +01:00
drivers.c flash/nor: Add Renesas RPC HF driver 2020-02-06 17:15:21 +00:00
dsp5680xx_flash.c flash: fix typos and duplicated words 2020-07-26 20:13:22 +01:00
efm32.c flash/nor: Use proper data types in driver API 2020-07-07 05:23:54 +01:00
em357.c flash: fix typos and duplicated words 2020-07-26 20:13:22 +01:00
esirisc_flash.c flash/nor: Use proper data types in driver API 2020-07-07 05:23:54 +01:00
faux.c flash/nor: Use proper data types in driver API 2020-07-07 05:23:54 +01:00
fespi.c coding style: fix space separation 2020-07-08 22:08:08 +01:00
fm3.c flash: fix typos and duplicated words 2020-07-26 20:13:22 +01:00
fm4.c flash/nor: Use proper data types in driver API 2020-07-07 05:23:54 +01:00
imp.h flash/nor: Use proper data types in driver API 2020-07-07 05:23:54 +01:00
jtagspi.c flash/nor/jtagspi: Use 'bool' data type 2020-07-08 22:06:17 +01:00
kinetis_ke.c flash: fix typos and duplicated words 2020-07-26 20:13:22 +01:00
kinetis.c flash: fix typos and duplicated words 2020-07-26 20:13:22 +01:00
lpc288x.c flash: fix typos and duplicated words 2020-07-26 20:13:22 +01:00
lpc2000.c flash: fix typos and duplicated words 2020-07-26 20:13:22 +01:00
lpc2900.c flash: fix typos and duplicated words 2020-07-26 20:13:22 +01:00
lpcspifi.c coding style: fix space separation 2020-07-08 22:08:08 +01:00
Makefile.am Flash driver for STM32G0xx and STM32G4xx 2020-03-16 15:25:10 +00:00
max32xxx.c flash: fix typos and duplicated words 2020-07-26 20:13:22 +01:00
mdr.c flash/nor/mdr: Use 'bool' data type 2020-07-08 22:06:28 +01:00
mrvlqspi.c flash: fix minor typo s/fifo's/fifos/ 2020-07-26 20:15:04 +01:00
msp432.c flash/nor: Use proper data types in driver API 2020-07-07 05:23:54 +01:00
msp432.h flash/nor: update support for TI MSP432 devices 2020-03-07 15:32:24 +00:00
niietcm4.c flash: fix typos and duplicated words 2020-07-26 20:13:22 +01:00
non_cfi.c flash: fix typos and duplicated words 2020-07-26 20:13:22 +01:00
non_cfi.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
nrf5.c flash: fix typos and duplicated words 2020-07-26 20:13:22 +01:00
numicro.c flash/nor: Use proper data types in driver API 2020-07-07 05:23:54 +01:00
ocl.c flash/nor: Use proper data types in driver API 2020-07-07 05:23:54 +01:00
ocl.h flash: fix typos and duplicated words 2020-07-26 20:13:22 +01:00
pic32mx.c flash: fix typos and duplicated words 2020-07-26 20:13:22 +01:00
psoc4.c flash: fix typos and duplicated words 2020-07-26 20:13:22 +01:00
psoc5lp.c flash: fix typos and duplicated words 2020-07-26 20:13:22 +01:00
psoc6.c flash: fix typos and duplicated words 2020-07-26 20:13:22 +01:00
renesas_rpchf.c flash/nor: Use proper data types in driver API 2020-07-07 05:23:54 +01:00
sh_qspi.c flash/nor/sh_qspi: Use 'bool' data type 2020-07-08 22:06:40 +01:00
sim3x.c flash: fix typos and duplicated words 2020-07-26 20:13:22 +01:00
spi.c nor/spi.c: add N25Q032A flash chip 2020-08-02 10:47:29 +01:00
spi.h SPI table updates (some new devices and new info) 2018-11-29 08:18:24 +00:00
stellaris.c flash: fix typos and duplicated words 2020-07-26 20:13:22 +01:00
stm32f1x.c flash/nor: Use proper data types in driver API 2020-07-07 05:23:54 +01:00
stm32f2x.c flash/nor/stm32f2x: clean up data types 2020-08-09 15:30:00 +01:00
stm32h7x.c src/flash/nor/stm32h7x: fix format strings 2020-08-09 15:29:45 +01:00
stm32l4x.c flash: fix typos and duplicated words 2020-07-26 20:13:22 +01:00
stm32l4x.h Flash driver for STM32G0xx and STM32G4xx 2020-03-16 15:25:10 +00:00
stm32lx.c flash: fix typos and duplicated words 2020-07-26 20:13:22 +01:00
stmsmi.c flash/nor/stmsmi: Use 'bool' data type 2020-07-08 22:06:46 +01:00
str7x.c flash: fix typos and duplicated words 2020-07-26 20:13:22 +01:00
str9x.c flash: fix typos and duplicated words 2020-07-26 20:13:22 +01:00
str9xpec.c flash/nor: Use proper data types in driver API 2020-07-07 05:23:54 +01:00
swm050.c flash/nor: Use proper data types in driver API 2020-07-07 05:23:54 +01:00
tcl.c flash/nor: Use proper data types in driver API 2020-07-07 05:23:54 +01:00
tms470.c flash: fix typos and duplicated words 2020-07-26 20:13:22 +01:00
virtual.c src/flash/nor/virtual: handle null pointers 2020-08-09 15:30:23 +01:00
w600.c flash: fix typos and duplicated words 2020-07-26 20:13:22 +01:00
xcf.c flash/nor: Use proper data types in driver API 2020-07-07 05:23:54 +01:00
xmc1xxx.c flash/nor: Use proper data types in driver API 2020-07-07 05:23:54 +01:00
xmc4xxx.c flash: fix typos and duplicated words 2020-07-26 20:13:22 +01:00