[flashrom] [commit] r1797 - trunk
repository service
svn at flashrom.org
Sun May 25 09:47:48 CEST 2014
Author: stefanct
Date: Sun May 25 09:47:47 2014
New Revision: 1797
URL: http://flashrom.org/trac/flashrom/changeset/1797
Log:
Constify dediprog's write functions too.
I forgot doing so in r1789 which broke compiling the dediprog module with
-Werror (which is default). Thanks to Mike Hibbett for reporting this.
Signed-off-by: Stefan Tauner <stefan.tauner at alumni.tuwien.ac.at>
Acked-by: Stefan Tauner <stefan.tauner at alumni.tuwien.ac.at>
Modified:
trunk/dediprog.c
Modified: trunk/dediprog.c
==============================================================================
--- trunk/dediprog.c Sun May 18 23:36:04 2014 (r1796)
+++ trunk/dediprog.c Sun May 25 09:47:47 2014 (r1797)
@@ -306,7 +306,7 @@
* @dedi_spi_cmd dediprog specific write command for spi bus
* @return 0 on success, 1 on failure
*/
-static int dediprog_spi_bulk_write(struct flashctx *flash, uint8_t *buf, unsigned int chunksize,
+static int dediprog_spi_bulk_write(struct flashctx *flash, const uint8_t *buf, unsigned int chunksize,
unsigned int start, unsigned int len, uint8_t dedi_spi_cmd)
{
int ret;
@@ -366,7 +366,7 @@
return 0;
}
-static int dediprog_spi_write(struct flashctx *flash, uint8_t *buf,
+static int dediprog_spi_write(struct flashctx *flash, const uint8_t *buf,
unsigned int start, unsigned int len, uint8_t dedi_spi_cmd)
{
int ret;
@@ -418,12 +418,12 @@
return 0;
}
-static int dediprog_spi_write_256(struct flashctx *flash, uint8_t *buf, unsigned int start, unsigned int len)
+static int dediprog_spi_write_256(struct flashctx *flash, const uint8_t *buf, unsigned int start, unsigned int len)
{
return dediprog_spi_write(flash, buf, start, len, DEDI_SPI_CMD_PAGEWRITE);
}
-static int dediprog_spi_write_aai(struct flashctx *flash, uint8_t *buf, unsigned int start, unsigned int len)
+static int dediprog_spi_write_aai(struct flashctx *flash, const uint8_t *buf, unsigned int start, unsigned int len)
{
return dediprog_spi_write(flash, buf, start, len, DEDI_SPI_CMD_AAIWRITE);
}
More information about the flashrom
mailing list