mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-01 22:21:16 +02:00
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>
This commit is contained in:

committed by
Stefan Tauner

parent
20da4aa82c
commit
f20b7beff0
@ -43,7 +43,7 @@ static int linux_spi_send_command(struct flashctx *flash, unsigned int writecnt,
|
||||
unsigned char *rxbuf);
|
||||
static int linux_spi_read(struct flashctx *flash, uint8_t *buf,
|
||||
unsigned int start, unsigned int len);
|
||||
static int linux_spi_write_256(struct flashctx *flash, uint8_t *buf,
|
||||
static int linux_spi_write_256(struct flashctx *flash, const uint8_t *buf,
|
||||
unsigned int start, unsigned int len);
|
||||
|
||||
static const struct spi_programmer spi_programmer_linux = {
|
||||
@ -179,8 +179,7 @@ static int linux_spi_read(struct flashctx *flash, uint8_t *buf,
|
||||
(unsigned int)getpagesize());
|
||||
}
|
||||
|
||||
static int linux_spi_write_256(struct flashctx *flash, uint8_t *buf,
|
||||
unsigned int start, unsigned int len)
|
||||
static int linux_spi_write_256(struct flashctx *flash, const uint8_t *buf, unsigned int start, unsigned int len)
|
||||
{
|
||||
return spi_write_chunked(flash, buf, start, len,
|
||||
((unsigned int)getpagesize()) - 4);
|
||||
|
Reference in New Issue
Block a user