Date:2015-04-21 13:11:50 (4 years 6 months ago)
Author:Werner Almesberger
Commit:428390047f5fdc13bf60f2d2e2671d1afb120459
Message:fw/atusb/ (dfu_flash_ops): make const

Files: atusb/fw/flash.c (3 diffs)
atusb/fw/usb/dfu.h (2 diffs)

Change Details

atusb/fw/flash.c
11/*
22 * fw/flash.c - Board-specific flash functions
33 *
4 * Written 2011, 2013, 2014 by Werner Almesberger
5 * Copyright 2011, 2013, 2014 Werner Almesberger
4 * Written 2011, 2013-2015 by Werner Almesberger
5 * Copyright 2011, 2013-2015 Werner Almesberger
66 *
77 * This program is free software; you can redistribute it and/or modify
88 * it under the terms of the GNU General Public License as published by
...... 
8585}
8686
8787
88static struct dfu_flash_ops flash_ops = {
88const static struct dfu_flash_ops flash_ops = {
8989    .start = flash_start,
9090    .can_write = flash_can_write,
9191    .write = flash_write,
...... 
9494};
9595
9696
97struct dfu_flash_ops *dfu_flash_ops = &flash_ops;
97const struct dfu_flash_ops *dfu_flash_ops = &flash_ops;
atusb/fw/usb/dfu.h
11/*
22 * boot/dfu.h - DFU protocol constants and data structures
33 *
4 * Written 2008, 2011, 2013, 2014 by Werner Almesberger
5 * Copyright 2008, 2011, 2013, 2014 Werner Almesberger
4 * Written 2008, 2011, 2013-2015 by Werner Almesberger
5 * Copyright 2008, 2011, 2013-2015 Werner Almesberger
66 *
77 * This program is free software; you can redistribute it and/or modify
88 * it under the terms of the GNU General Public License as published by
...... 
107107};
108108
109109extern struct dfu dfu;
110extern struct dfu_flash_ops *dfu_flash_ops;
110extern const struct dfu_flash_ops *dfu_flash_ops;
111111
112112
113113bool dfu_setup_common(const struct setup_request *setup);

Archive Download the corresponding diff file



interactive