mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-02 22:43:17 +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
@ -349,7 +349,7 @@
|
||||
#include <unistd.h>
|
||||
|
||||
/* FIXME: Add some programmer IDs here */
|
||||
const struct dev_entry devs_raiden[] = {
|
||||
static const struct dev_entry devs_raiden[] = {
|
||||
{0},
|
||||
};
|
||||
|
||||
@ -1454,7 +1454,7 @@ static void free_dev_list(struct usb_device **dev_lst)
|
||||
dev = usb_device_free(dev);
|
||||
}
|
||||
|
||||
int raiden_debug_spi_init(void)
|
||||
static int raiden_debug_spi_init(void)
|
||||
{
|
||||
struct usb_match match;
|
||||
char *serial = extract_programmer_param("serial");
|
||||
@ -1617,3 +1617,13 @@ loop_end:
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
const struct programmer_entry programmer_raiden_debug_spi = {
|
||||
.name = "raiden_debug_spi",
|
||||
.type = USB,
|
||||
.devs.dev = devs_raiden,
|
||||
.init = raiden_debug_spi_init,
|
||||
.map_flash_region = fallback_map,
|
||||
.unmap_flash_region = fallback_unmap,
|
||||
.delay = internal_delay,
|
||||
};
|
||||
|
Reference in New Issue
Block a user