0001-programmer.h-Define-ich_generation-after-enum-declar.patch 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. From f721cdd46196a99dbcc41f0f7ecaf2ee17a147fe Mon Sep 17 00:00:00 2001
  2. From: Paul Kocialkowski <contact@paulk.fr>
  3. Date: Wed, 2 Nov 2016 19:16:50 +0100
  4. Subject: [PATCH] programmer.h: Define ich_generation after enum declaration
  5. This moves the ich_generation definition after the declaration of its
  6. associated enum.
  7. Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
  8. ---
  9. programmer.h | 3 ++-
  10. 1 file changed, 2 insertions(+), 1 deletion(-)
  11. diff --git a/programmer.h b/programmer.h
  12. index 191fb1e..86a695a 100644
  13. --- a/programmer.h
  14. +++ b/programmer.h
  15. @@ -275,7 +275,6 @@ int board_flash_enable(const char *vendor, const char *part);
  16. /* chipset_enable.c */
  17. int chipset_flash_enable(void);
  18. int get_target_bus_from_chipset(enum chipbustype *target_bus);
  19. -enum ich_chipset ich_generation;
  20. /* processor_enable.c */
  21. int processor_flash_enable(void);
  22. @@ -603,6 +602,8 @@ enum ich_chipset {
  23. };
  24. #if CONFIG_INTERNAL == 1
  25. +enum ich_chipset ich_generation;
  26. +
  27. extern uint32_t ichspi_bbar;
  28. int ich_init_spi(struct pci_dev *dev, uint32_t base, void *rcrb,
  29. enum ich_chipset ich_generation);
  30. --
  31. 2.10.2