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
2
opaque.c
2
opaque.c
@ -40,7 +40,7 @@ int read_opaque(struct flashctx *flash, uint8_t *buf, unsigned int start, unsign
|
||||
return flash->pgm->opaque.read(flash, buf, start, len);
|
||||
}
|
||||
|
||||
int write_opaque(struct flashctx *flash, uint8_t *buf, unsigned int start, unsigned int len)
|
||||
int write_opaque(struct flashctx *flash, const uint8_t *buf, unsigned int start, unsigned int len)
|
||||
{
|
||||
return flash->pgm->opaque.write(flash, buf, start, len);
|
||||
}
|
||||
|
Reference in New Issue
Block a user