mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-28 15:33:42 +02:00
spi25.c: Use define const in spi_simple_write_cmd() fn
This uses the JEDEC_WREN_OUTSIZE define in the spi_simple_write_cmd() helper function to improve readability. BUG=none BRANCH=none TEST=builds same object Change-Id: I1b5ede4435ba014320fa8cf9490dc23cdfba4fd6 Signed-off-by: Edward O'Callaghan <quasisec@google.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/47004 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Shiyu Sun <sshiyu@google.com> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
parent
dd81c9aa66
commit
53a99cdbc9
2
spi25.c
2
spi25.c
@ -325,7 +325,7 @@ static int spi_simple_write_cmd(struct flashctx *const flash, const uint8_t op,
|
|||||||
struct spi_command cmds[] = {
|
struct spi_command cmds[] = {
|
||||||
{
|
{
|
||||||
.readarr = 0,
|
.readarr = 0,
|
||||||
.writecnt = 1,
|
.writecnt = JEDEC_WREN_OUTSIZE,
|
||||||
.writearr = (const unsigned char[]){ JEDEC_WREN },
|
.writearr = (const unsigned char[]){ JEDEC_WREN },
|
||||||
}, {
|
}, {
|
||||||
.readarr = 0,
|
.readarr = 0,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user