mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2024-12-22 19:13:21 +02:00
fw/atusb/ (dfu_flash_ops): make const
This commit is contained in:
parent
4b6f390830
commit
428390047f
@ -1,8 +1,8 @@
|
||||
/*
|
||||
* fw/flash.c - Board-specific flash functions
|
||||
*
|
||||
* Written 2011, 2013, 2014 by Werner Almesberger
|
||||
* Copyright 2011, 2013, 2014 Werner Almesberger
|
||||
* Written 2011, 2013-2015 by Werner Almesberger
|
||||
* Copyright 2011, 2013-2015 Werner Almesberger
|
||||
*
|
||||
* 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
|
||||
@ -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,
|
||||
.can_write = flash_can_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;
|
||||
|
@ -1,8 +1,8 @@
|
||||
/*
|
||||
* boot/dfu.h - DFU protocol constants and data structures
|
||||
*
|
||||
* Written 2008, 2011, 2013, 2014 by Werner Almesberger
|
||||
* Copyright 2008, 2011, 2013, 2014 Werner Almesberger
|
||||
* Written 2008, 2011, 2013-2015 by Werner Almesberger
|
||||
* Copyright 2008, 2011, 2013-2015 Werner Almesberger
|
||||
*
|
||||
* 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
|
||||
@ -107,7 +107,7 @@ struct dfu_flash_ops {
|
||||
};
|
||||
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user