summaryrefslogtreecommitdiffstats
path: root/en29lv640b.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 /en29lv640b.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 'en29lv640b.c')
-rw-r--r--en29lv640b.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/en29lv640b.c b/en29lv640b.c
index e79415a..110aa18 100644
--- a/en29lv640b.c
+++ b/en29lv640b.c
@@ -31,8 +31,7 @@
*/
/* chunksize is 1 */
-int write_en29lv640b(struct flashctx *flash, uint8_t *src, unsigned int start,
- unsigned int len)
+int write_en29lv640b(struct flashctx *flash, const uint8_t *src, unsigned int start, unsigned int len)
{
int i;
chipaddr bios = flash->virtual_memory;
OpenPOWER on IntegriCloud