mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-02 06:23:18 +02:00
Don't use "byte" as identifier
Some mingw declares a global identifier "byte", causing -Werror -Wshadow to break compilation. This patch renames all identifiers called "byte". Corresponding to flashrom svn r861. Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
This commit is contained in:
4
spi.c
4
spi.c
@ -832,7 +832,7 @@ int spi_write_status_register(int status)
|
||||
return result;
|
||||
}
|
||||
|
||||
int spi_byte_program(int addr, uint8_t byte)
|
||||
int spi_byte_program(int addr, uint8_t databyte)
|
||||
{
|
||||
int result;
|
||||
struct spi_command cmds[] = {
|
||||
@ -843,7 +843,7 @@ int spi_byte_program(int addr, uint8_t byte)
|
||||
.readarr = NULL,
|
||||
}, {
|
||||
.writecnt = JEDEC_BYTE_PROGRAM_OUTSIZE,
|
||||
.writearr = (const unsigned char[]){ JEDEC_BYTE_PROGRAM, (addr >> 16) & 0xff, (addr >> 8) & 0xff, (addr & 0xff), byte },
|
||||
.writearr = (const unsigned char[]){ JEDEC_BYTE_PROGRAM, (addr >> 16) & 0xff, (addr >> 8) & 0xff, (addr & 0xff), databyte },
|
||||
.readcnt = 0,
|
||||
.readarr = NULL,
|
||||
}, {
|
||||
|
Reference in New Issue
Block a user