X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Fflash%2Fnor%2Focl.c;h=c547d9a1746c528ff4c53604b074ea160535d989;hb=dba153bbce59985b0d8a23fc8d01c3b51d7e8528;hp=39e52c7295c81f23018b1db5c94aea00b8e19725;hpb=9f0cba528a163645c8ecace413731c23310f2c26;p=openocd.git diff --git a/src/flash/nor/ocl.c b/src/flash/nor/ocl.c index 39e52c7295..c547d9a174 100644 --- a/src/flash/nor/ocl.c +++ b/src/flash/nor/ocl.c @@ -15,7 +15,7 @@ * 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., * - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * ***************************************************************************/ #ifdef HAVE_CONFIG_H @@ -118,7 +118,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 +321,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 +341,5 @@ 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, };