This is an automated email from Gerrit. Edward Fewell (efew...@ti.com) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/5513
-- gerrit commit a9d3c412b2e66768c0ea42bc8a58b8ee98be675b Author: Edward Fewell <efew...@ti.com> Date: Tue Mar 10 16:47:21 2020 -0500 flash/nor: Add flash protect_check routine to CC3220SF flash driver Add a dummy call for .protect_check to suppress the warning. Sector protection isn't required for this flash driver. Change-Id: I219edbd32f3015192b11f151778f4b19917b1d6a Signed-off-by: Edward Fewell <efew...@ti.com> diff --git a/src/flash/nor/cc3220sf.c b/src/flash/nor/cc3220sf.c index afdb7f4..f53e6da 100644 --- a/src/flash/nor/cc3220sf.c +++ b/src/flash/nor/cc3220sf.c @@ -477,6 +477,12 @@ static int cc3220sf_auto_probe(struct flash_bank *bank) return retval; } +static int cc3220sf_protect_check(struct flash_bank *bank) +{ + /* Added to suppress warning, not needed for CC3220SF flash */ + return ERROR_OK; +} + static int cc3220sf_info(struct flash_bank *bank, char *buf, int buf_size) { int printed; @@ -498,6 +504,7 @@ const struct flash_driver cc3220sf_flash = { .probe = cc3220sf_probe, .auto_probe = cc3220sf_auto_probe, .erase_check = default_flash_blank_check, + .protect_check = cc3220sf_protect_check, .info = cc3220sf_info, .free_driver_priv = default_flash_free_driver_priv, }; -- _______________________________________________ OpenOCD-devel mailing list OpenOCD-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openocd-devel