summaryrefslogtreecommitdiff
path: root/sst28sf040.c
diff options
context:
space:
mode:
authorstefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2014-05-09 21:16:21 +0000
committerstefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2014-05-09 21:16:21 +0000
commite5775748c3035131b8291eaf69ca9c9e4ccfb93e (patch)
tree6324be451385c9f9cea27381f35f300fbaa7f454 /sst28sf040.c
parent54ea35f68b4dcf3d2fc191e30914ce2195117baa (diff)
downloadflashrom-e5775748c3035131b8291eaf69ca9c9e4ccfb93e.tar.gz
Add 'const' keyword to chip write and other function prototypes.
Inspired by and mostly based on a patch 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> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1789 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'sst28sf040.c')
-rw-r--r--sst28sf040.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sst28sf040.c b/sst28sf040.c
index 52e4256..4d8cb66 100644
--- a/sst28sf040.c
+++ b/sst28sf040.c
@@ -77,8 +77,7 @@ int erase_sector_28sf040(struct flashctx *flash, unsigned int address,
}
/* chunksize is 1 */
-int write_28sf040(struct flashctx *flash, uint8_t *src, unsigned int start,
- unsigned int len)
+int write_28sf040(struct flashctx *flash, const uint8_t *src, unsigned int start, unsigned int len)
{
int i;
chipaddr bios = flash->virtual_memory;