From e5775748c3035131b8291eaf69ca9c9e4ccfb93e Mon Sep 17 00:00:00 2001 From: stefanct Date: Fri, 9 May 2014 21:16:21 +0000 Subject: Add 'const' keyword to chip write and other function prototypes. Inspired by and mostly based on a patch Signed-off-by: Mark Marshall Signed-off-by: Stefan Tauner Acked-by: Stefan Tauner git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1789 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- 82802ab.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to '82802ab.c') diff --git a/82802ab.c b/82802ab.c index 2a43813..9e39852 100644 --- a/82802ab.c +++ b/82802ab.c @@ -142,8 +142,7 @@ int erase_block_82802ab(struct flashctx *flash, unsigned int page, } /* chunksize is 1 */ -int write_82802ab(struct flashctx *flash, uint8_t *src, unsigned int start, - unsigned int len) +int write_82802ab(struct flashctx *flash, const uint8_t *src, unsigned int start, unsigned int len) { int i; chipaddr dst = flash->virtual_memory + start; -- cgit v1.2.1