diff options
author | Mark Marshall <mark.marshall@omicron.at> | 2014-05-09 21:16:21 +0000 |
---|---|---|
committer | Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> | 2014-05-09 21:16:21 +0000 |
commit | e6f4adf734badf740939a7e9b395e1e6deee4ae0 (patch) | |
tree | 6324be451385c9f9cea27381f35f300fbaa7f454 /m29f400bt.c | |
parent | 9a4efdadb2f72e9a99ca017f6ba90dbd8c5967f4 (diff) | |
download | flashrom-e6f4adf734badf740939a7e9b395e1e6deee4ae0.zip flashrom-e6f4adf734badf740939a7e9b395e1e6deee4ae0.tar.gz |
Add 'const' keyword to chip write and other function prototypes
Inspired by and mostly based on a patch
Corresponding to flashrom svn r1789.
Signed-off-by: Mark Marshall <mark.marshall@omicron.at>
Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Diffstat (limited to 'm29f400bt.c')
-rw-r--r-- | m29f400bt.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/m29f400bt.c b/m29f400bt.c index 8f0329e..c2236e5 100644 --- a/m29f400bt.c +++ b/m29f400bt.c @@ -28,8 +28,7 @@ functions. */ /* chunksize is 1 */ -int write_m29f400bt(struct flashctx *flash, uint8_t *src, unsigned int start, - unsigned int len) +int write_m29f400bt(struct flashctx *flash, const uint8_t *src, unsigned int start, unsigned int len) { int i; chipaddr bios = flash->virtual_memory; |