X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fflash%2Fnor%2Fdriver.h;fp=src%2Fflash%2Fnor%2Fdriver.h;h=ef69a0f424f2d3e7c2ab979cd9bb60254e6ead13;hp=e7b3234439d73f13ff39c7d7a54781ad487fd2d3;hb=9542cb7c3d9f4b66d2df3d8412a73d008077ab86;hpb=ff555afc02d50ca57fc6e71787d34a8e985cf115;ds=sidebyside diff --git a/src/flash/nor/driver.h b/src/flash/nor/driver.h index e7b3234439..ef69a0f424 100644 --- a/src/flash/nor/driver.h +++ b/src/flash/nor/driver.h @@ -109,6 +109,8 @@ struct flash_driver { /** * Bank/sector protection routine (target-specific). * + * If protection is not implemented, set method to NULL + * * When called, the driver should enable/disable protection * for MINIMUM the range covered by first..last sectors * inclusive. Some chips have alignment requirements will @@ -178,6 +180,8 @@ struct flash_driver { * flash_sector_s::is_protected field for each of the flash * bank's sectors. * + * If protection is not implemented, set method to NULL + * * @param bank - the bank to check * @returns ERROR_OK if successful; otherwise, an error code. */