mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-27 15:12:36 +02:00
nicintel_eeprom.c: Fix typo
`done_i20_write` is meant to be `done_i210_write`. Fix that. Signed-off-by: Felix Singer <felixsinger@posteo.net> Change-Id: Idc0a0c475e891fc8538a7a81093520e01e1b25bf Reviewed-on: https://review.coreboot.org/c/flashrom/+/68582 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Alexander Goncharov <chat@joursoir.net>
This commit is contained in:
parent
644b9d96f0
commit
618bdb37e1
@ -81,7 +81,7 @@ struct nicintel_eeprom_data {
|
||||
uint32_t eec;
|
||||
|
||||
/* Intel I210 variable(s) */
|
||||
bool done_i20_write;
|
||||
bool done_i210_write;
|
||||
};
|
||||
|
||||
/*
|
||||
@ -225,7 +225,7 @@ static int nicintel_ee_write_i210(struct flashctx *flash, const uint8_t *buf,
|
||||
unsigned int addr, unsigned int len)
|
||||
{
|
||||
struct nicintel_eeprom_data *opaque_data = flash->mst->opaque.data;
|
||||
opaque_data->done_i20_write = true;
|
||||
opaque_data->done_i210_write = true;
|
||||
|
||||
if (addr & 1) {
|
||||
uint16_t data;
|
||||
@ -414,7 +414,7 @@ static int nicintel_ee_shutdown_i210(void *opaque_data)
|
||||
struct nicintel_eeprom_data *data = opaque_data;
|
||||
int ret = 0;
|
||||
|
||||
if (!data->done_i20_write)
|
||||
if (!data->done_i210_write)
|
||||
goto out;
|
||||
|
||||
uint32_t flup = pci_mmio_readl(data->nicintel_eebar + EEC);
|
||||
@ -528,7 +528,7 @@ static int nicintel_ee_init(const struct programmer_cfg *cfg)
|
||||
data->nicintel_pci = dev;
|
||||
data->nicintel_eebar = eebar;
|
||||
data->eec = eec;
|
||||
data->done_i20_write = false;
|
||||
data->done_i210_write = false;
|
||||
|
||||
return register_opaque_master(mst, data);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user