mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-02 14:33:18 +02:00
programmer_table: move each entry to the associated programmer source
Change-Id: I3d02bd789f0299e936eb86819b3b15b5ea2bb921 Signed-off-by: Thomas Heijligen <thomas.heijligen@secunet.de> Reviewed-on: https://review.coreboot.org/c/flashrom/+/52946 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Anastasia Klimchuk <aklm@chromium.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:

committed by
Nico Huber

parent
085db626fb
commit
4f5169df5f
14
dediprog.c
14
dediprog.c
@ -152,7 +152,7 @@ enum protocol {
|
||||
PROTOCOL_V3,
|
||||
};
|
||||
|
||||
const struct dev_entry devs_dediprog[] = {
|
||||
static const struct dev_entry devs_dediprog[] = {
|
||||
{0x0483, 0xDADA, OK, "Dediprog", "SF100/SF200/SF600"},
|
||||
|
||||
{0},
|
||||
@ -1055,7 +1055,7 @@ static int dediprog_shutdown(void *data)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int dediprog_init(void)
|
||||
static int dediprog_init(void)
|
||||
{
|
||||
char *voltage, *id_str, *device, *spispeed, *target_str;
|
||||
int spispeed_idx = 1;
|
||||
@ -1279,3 +1279,13 @@ int dediprog_init(void)
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
const struct programmer_entry programmer_dediprog = {
|
||||
.name = "dediprog",
|
||||
.type = USB,
|
||||
.devs.dev = devs_dediprog,
|
||||
.init = dediprog_init,
|
||||
.map_flash_region = fallback_map,
|
||||
.unmap_flash_region = fallback_unmap,
|
||||
.delay = internal_delay,
|
||||
};
|
||||
|
Reference in New Issue
Block a user