UPSTREAM: tree: Remove forward-declarations of structs for spi masters

Reorder functions to avoid forward-declarations of structs. Similar
thing was done earlier for functions declarations, this patch takes
care of structs declarations.

BUG=b:140394053
BRANCH=none
TEST=builds
objdump -d is identical
objdump -s only difference is version number

Original-Change-Id: I256bd7c763efc010fc1f29f7c5853f150ac10739
Original-Signed-off-by: Anastasia Klimchuk <aklm@chromium.org>
Original-Reviewed-on: https://review.coreboot.org/c/flashrom/+/51731
Original-Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Original-Reviewed-by: Nico Huber <nico.h@gmx.de>
Original-Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
(cherry picked from commit e704583ad53b24e1b39aa7a2e5077fa95d5f9244)

Signed-off-by: Anastasia Klimchuk <aklm@chromium.org>
Change-Id: I017051bce002e77877a55b9749ca0b18d2db7f81
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/flashrom/+/2796738
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
Tested-by: Edward O'Callaghan <quasisec@chromium.org>
Commit-Queue: Edward O'Callaghan <quasisec@chromium.org>
3 files changed
tree: be6f80d30253b6f4ae19f73e3af3bffc4bafbc3a
  1. Documentation/
  2. util/
  3. .gitattributes
  4. .gitignore
  5. 82802ab.c
  6. action_descriptor.c
  7. action_descriptor.h
  8. amd_imc.c
  9. archtest.c
  10. at45db.c
  11. atahpt.c
  12. atapromise.c
  13. atavia.c
  14. big_lock.c
  15. big_lock.h
  16. bitbang_spi.c
  17. board_enable.c
  18. buspirate_spi.c
  19. cbtable.c
  20. ch341a_spi.c
  21. chipdrivers.h
  22. chipset_enable.c
  23. cli_classic.c
  24. cli_common.c
  25. cli_output.c
  26. COPYING
  27. coreboot_tables.h
  28. cros_alias.c
  29. cros_ec.c
  30. cros_ec.h
  31. cros_ec_commands.h
  32. cros_ec_dev.c
  33. custom_baud.c
  34. custom_baud.h
  35. dediprog.c
  36. developerbox_spi.c
  37. digilent_spi.c
  38. dmi.c
  39. drkaiser.c
  40. dummyflasher.c
  41. edi.c
  42. edi.h
  43. en29lv640b.c
  44. endiantest.c
  45. ene.h
  46. ene_lpc.c
  47. file.c
  48. file.h
  49. file_lock.c
  50. flash.h
  51. flashchips.c
  52. flashchips.h
  53. flashrom.8.tmpl
  54. flashrom.c
  55. fmap.c
  56. fmap.h
  57. ft2232_spi.c
  58. gfxnvidia.c
  59. helpers.c
  60. hwaccess.c
  61. hwaccess.h
  62. i2c_helper.h
  63. i2c_helper_linux.c
  64. ich_descriptors.c
  65. ich_descriptors.h
  66. ichspi.c
  67. internal.c
  68. ipc_lock.h
  69. it8212.c
  70. it85spi.c
  71. it87spi.c
  72. jedec.c
  73. jlink_spi.c
  74. layout.c
  75. layout.h
  76. libflashrom.c
  77. libflashrom.h
  78. libflashrom.map
  79. linux_mtd.c
  80. linux_spi.c
  81. lspcon_i2c_spi.c
  82. Makefile
  83. mcp6x_spi.c
  84. mec1308.c
  85. meson.build
  86. meson_options.txt
  87. mstarddc_spi.c
  88. ni845x_spi.c
  89. nic3com.c
  90. nicintel.c
  91. nicintel_eeprom.c
  92. nicintel_spi.c
  93. nicnatsemi.c
  94. nicrealtek.c
  95. ogp_spi.c
  96. opaque.c
  97. os.h
  98. OWNERS
  99. pcidev.c
  100. physmap.c
  101. pickit2_spi.c
  102. platform.h
  103. pony_spi.c
  104. power.c
  105. power.h
  106. PRESUBMIT.cfg
  107. print.c
  108. print_wiki.c
  109. processor_enable.c
  110. programmer.c
  111. programmer.h
  112. raiden_debug_spi.c
  113. rayer_spi.c
  114. README
  115. README.chromiumos
  116. realtek_mst_i2c_spi.c
  117. s25f.c
  118. satamv.c
  119. satasii.c
  120. sb600spi.c
  121. search.c
  122. search.h
  123. serial.c
  124. serprog.c
  125. serprog.h
  126. sfdp.c
  127. spi.c
  128. spi.h
  129. spi25.c
  130. spi25_statusreg.c
  131. spi95.c
  132. sst28sf040.c
  133. sst49lfxxxc.c
  134. sst_fwhub.c
  135. stlinkv3_spi.c
  136. stm50.c
  137. udelay.c
  138. usb_device.c
  139. usb_device.h
  140. usbblaster_spi.c
  141. usbdev.c
  142. w29ee011.c
  143. w39.c
  144. wbsio_spi.c
  145. writeprotect.c
  146. writeprotect.h