mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-02 22:43:17 +02:00
Make struct flashchip a field in struct flashctx instead of a complete copy
All the driver conversion work and cleanup has been done by Stefan. flashrom.c and cli_classic.c are a joint work of Stefan and Carl-Daniel. Corresponding to flashrom svn r1579. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
This commit is contained in:
@ -40,14 +40,14 @@ static void write_lockbits_49fl00x(const struct flashctx *flash,
|
||||
|
||||
int unlock_49fl00x(struct flashctx *flash)
|
||||
{
|
||||
write_lockbits_49fl00x(flash, flash->total_size * 1024, 0,
|
||||
flash->page_size);
|
||||
write_lockbits_49fl00x(flash, flash->chip->total_size * 1024, 0,
|
||||
flash->chip->page_size);
|
||||
return 0;
|
||||
}
|
||||
|
||||
int lock_49fl00x(struct flashctx *flash)
|
||||
{
|
||||
write_lockbits_49fl00x(flash, flash->total_size * 1024, 1,
|
||||
flash->page_size);
|
||||
write_lockbits_49fl00x(flash, flash->chip->total_size * 1024, 1,
|
||||
flash->chip->page_size);
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user