X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Fflash%2Fnor%2Focl.c;h=895c4af219374f54f0636c201dd5290c88dc562c;hb=7ce8624dbfc3c26a4dfb7ca089a99ccf52a8539b;hp=4e7198a736fe2c6ec9ecd50eea994ae1b1b3dd80;hpb=08d4411b59dd8bd0e7d8009003b71d23acbf6eee;p=openocd.git diff --git a/src/flash/nor/ocl.c b/src/flash/nor/ocl.c index 4e7198a736..895c4af219 100644 --- a/src/flash/nor/ocl.c +++ b/src/flash/nor/ocl.c @@ -13,9 +13,7 @@ * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * + * along with this program. If not, see . * ***************************************************************************/ #ifdef HAVE_CONFIG_H @@ -118,7 +116,7 @@ static int ocl_protect(struct flash_bank *bank, int set, int first, int last) return ERROR_OK; } -static int ocl_write(struct flash_bank *bank, uint8_t *buffer, uint32_t offset, uint32_t count) +static int ocl_write(struct flash_bank *bank, const uint8_t *buffer, uint32_t offset, uint32_t count) { struct ocl_priv *ocl = bank->driver_priv; int retval; @@ -321,11 +319,6 @@ static int ocl_probe(struct flash_bank *bank) return ERROR_OK; } -static int ocl_info(struct flash_bank *bank, char *buf, int buf_size) -{ - return ERROR_OK; -} - static int ocl_auto_probe(struct flash_bank *bank) { struct ocl_priv *ocl = bank->driver_priv; @@ -346,6 +339,6 @@ struct flash_driver ocl_flash = { .probe = ocl_probe, .erase_check = ocl_erase_check, .protect_check = ocl_protect_check, - .info = ocl_info, .auto_probe = ocl_auto_probe, + .free_driver_priv = default_flash_free_driver_priv, };