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

Add a new field for the names of programmers and use it to match against user input

Use programmer.name to match the --programmer parameter instead of
hardcoding the name of every single programmer in main().

-p dummyfoo won't be mistaken for -p dummy anymore.

Corresponding to flashrom svn r680.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
This commit is contained in:
Carl-Daniel Hailfinger
2009-08-12 14:34:35 +00:00
parent ef58a9ce3f
commit 37fc469ca2
2 changed files with 39 additions and 30 deletions

View File

@ -88,6 +88,7 @@ enum programmer {
PROGRAMMER_IT87SPI,
PROGRAMMER_FT2232SPI,
PROGRAMMER_SERPROG,
PROGRAMMER_INVALID /* This must always be the last entry. */
};
extern enum programmer programmer;