From 4b24a2d70b79f3288370fd5b4f472bdf218f16e8 Mon Sep 17 00:00:00 2001 From: Stefan Tauner Date: Thu, 27 Dec 2012 18:40:36 +0000 Subject: Unify usbdev_status and pcidev_status into dev_entry Once upon a time usbdev_status was created for the ft2232 programmer. Its IDs are semantically different to pcidev_status because they indicate USB instead of PCI IDs, but apart from that both data structures are equal. This change makes life easier for everything involved in handling and printing the status of devices that is noted in those structures by combining them into dev_entry. It is still possible to distinguish between PCI and USB devices indirectly by using the struct programmer's type field. Also, add a programmer column to the PCI and USB devices lists. Corresponding to flashrom svn r1632. Signed-off-by: Stefan Tauner Acked-by: Carl-Daniel Hailfinger --- drkaiser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drkaiser.c') diff --git a/drkaiser.c b/drkaiser.c index 8c9f560..e461061 100644 --- a/drkaiser.c +++ b/drkaiser.c @@ -33,7 +33,7 @@ /* Mask to restrict flash accesses to the 128kB memory window. */ #define DRKAISER_MEMMAP_MASK ((1 << 17) - 1) -const struct pcidev_status drkaiser_pcidev[] = { +const struct dev_entry drkaiser_pcidev[] = { {0x1803, 0x5057, OK, "Dr. Kaiser", "PC-Waechter (Actel FPGA)"}, {0}, -- cgit v1.1