summaryrefslogtreecommitdiffstats
path: root/ichspi.c
diff options
context:
space:
mode:
authorMark Marshall <mark.marshall@omicron.at>2014-05-09 21:16:21 +0000
committerStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2014-05-09 21:16:21 +0000
commitf20b7beff054eb316088d590094d9efbc68dbee1 (patch)
tree6324be451385c9f9cea27381f35f300fbaa7f454 /ichspi.c
parent20da4aa82cc11f25a6a4a52fd2bed219e6e1d829 (diff)
downloadast2050-flashrom-f20b7beff054eb316088d590094d9efbc68dbee1.zip
ast2050-flashrom-f20b7beff054eb316088d590094d9efbc68dbee1.tar.gz
Add 'const' keyword to chip write and other function prototypes
Corresponding to flashrom svn r1789. 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>
Diffstat (limited to 'ichspi.c')
-rw-r--r--ichspi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ichspi.c b/ichspi.c
index 6c394db..190ad5a 100644
--- a/ichspi.c
+++ b/ichspi.c
@@ -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;
OpenPOWER on IntegriCloud