diff options
author | stefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2014-05-09 21:16:21 +0000 |
---|---|---|
committer | stefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2014-05-09 21:16:21 +0000 |
commit | e5775748c3035131b8291eaf69ca9c9e4ccfb93e (patch) | |
tree | 6324be451385c9f9cea27381f35f300fbaa7f454 /ichspi.c | |
parent | 54ea35f68b4dcf3d2fc191e30914ce2195117baa (diff) | |
download | flashrom-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 'ichspi.c')
-rw-r--r-- | ichspi.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1327,8 +1327,7 @@ static int ich_hwseq_read(struct flashctx *flash, uint8_t *buf, return 0; } -static int ich_hwseq_write(struct flashctx *flash, uint8_t *buf, - unsigned int addr, unsigned int len) +static int ich_hwseq_write(struct flashctx *flash, const uint8_t *buf, unsigned int addr, unsigned int len) { uint16_t hsfc; uint16_t timeout = 100 * 60; |