1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-11-25 20:14:40 +02:00

fw/atusb/ (dfu_flash_ops): make const

This commit is contained in:
Werner Almesberger 2015-04-21 08:11:50 -03:00
parent 4b6f390830
commit 428390047f
2 changed files with 7 additions and 7 deletions

View File

@ -1,8 +1,8 @@
/* /*
* fw/flash.c - Board-specific flash functions * fw/flash.c - Board-specific flash functions
* *
* Written 2011, 2013, 2014 by Werner Almesberger * Written 2011, 2013-2015 by Werner Almesberger
* Copyright 2011, 2013, 2014 Werner Almesberger * Copyright 2011, 2013-2015 Werner Almesberger
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@ -85,7 +85,7 @@ static uint16_t flash_read(uint8_t *buf, uint16_t size)
} }
static struct dfu_flash_ops flash_ops = { const static struct dfu_flash_ops flash_ops = {
.start = flash_start, .start = flash_start,
.can_write = flash_can_write, .can_write = flash_can_write,
.write = flash_write, .write = flash_write,
@ -94,4 +94,4 @@ static struct dfu_flash_ops flash_ops = {
}; };
struct dfu_flash_ops *dfu_flash_ops = &flash_ops; const struct dfu_flash_ops *dfu_flash_ops = &flash_ops;

View File

@ -1,8 +1,8 @@
/* /*
* boot/dfu.h - DFU protocol constants and data structures * boot/dfu.h - DFU protocol constants and data structures
* *
* Written 2008, 2011, 2013, 2014 by Werner Almesberger * Written 2008, 2011, 2013-2015 by Werner Almesberger
* Copyright 2008, 2011, 2013, 2014 Werner Almesberger * Copyright 2008, 2011, 2013-2015 Werner Almesberger
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@ -107,7 +107,7 @@ struct dfu_flash_ops {
}; };
extern struct dfu dfu; extern struct dfu dfu;
extern struct dfu_flash_ops *dfu_flash_ops; extern const struct dfu_flash_ops *dfu_flash_ops;
bool dfu_setup_common(const struct setup_request *setup); bool dfu_setup_common(const struct setup_request *setup);