path: root/programmer.c
diff options
authorMark Marshall <>2014-05-09 21:16:21 +0000
committerStefan Tauner <>2014-05-09 21:16:21 +0000
commitf20b7beff054eb316088d590094d9efbc68dbee1 (patch)
tree6324be451385c9f9cea27381f35f300fbaa7f454 /programmer.c
parent20da4aa82cc11f25a6a4a52fd2bed219e6e1d829 (diff)
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 <> Signed-off-by: Stefan Tauner <> Acked-by: Stefan Tauner <>
Diffstat (limited to 'programmer.c')
1 files changed, 1 insertions, 2 deletions
diff --git a/programmer.c b/programmer.c
index bf7dca1..1874929 100644
--- a/programmer.c
+++ b/programmer.c
@@ -78,8 +78,7 @@ uint32_t fallback_chip_readl(const struct flashctx *flash, const chipaddr addr)
return val;
-void fallback_chip_writen(const struct flashctx *flash, uint8_t *buf,
- chipaddr addr, size_t len)
+void fallback_chip_writen(const struct flashctx *flash, const uint8_t *buf, chipaddr addr, size_t len)
size_t i;
for (i = 0; i < len; i++)
OpenPOWER on IntegriCloud