1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-07-02 06:23:18 +02:00

programmer_init: use struct programmer_entry*

Change-Id: Iacf0f25abc94a84c5d52c8d69a3e8640817b060a
Signed-off-by: Thomas Heijligen <thomas.heijligen@secunet.de>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/55121
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
Thomas Heijligen
2021-06-01 14:37:12 +02:00
committed by Nico Huber
parent 4bb086423c
commit 5d25f04fd5
5 changed files with 15 additions and 15 deletions

View File

@ -287,7 +287,7 @@ int flashrom_programmer_init(struct flashrom_programmer **const flashprog,
list_programmers_linebreak(0, 80, 0);
return 1;
}
return programmer_init(prog, prog_param);
return programmer_init(programmer_table[prog], prog_param);
}
/**