X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Fflash%2Fnor%2Focl.c;h=4ae5652194b784bd703aac0a9b5dcc66a2a11c5d;hb=10a3b24daf379162caf84fe757f849d7ba48c379;hp=6b297b0d366c929c8d8dfa18d8a25d797f9e72e5;hpb=cbf4760e15d217c0a83e65f13bddfcbfad7d2fec;p=openocd.git diff --git a/src/flash/nor/ocl.c b/src/flash/nor/ocl.c index 6b297b0d36..4ae5652194 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;