UPSTREAM: wbsio_spi.c: Reorder functions with primitives at the top

Reshuffle file with no semantic changes, this avoids unnecessary
prototypes for static member functions as to pave the way for further
cleanups as well as an easier to parse implementation.

BUG=none
BRANCH=none
TEST=builds

Original-Change-Id: Iae9426b6a8ba6a824f7d7e9aaf9f8174b044d04c
Original-Signed-off-by: Edward O'Callaghan <quasisec@google.com>
Original-Reviewed-on: https://review.coreboot.org/c/flashrom/+/47853
Original-Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Original-Reviewed-by: Sam McNally <sammc@google.com>
(cherry picked from commit 60aec98d5b02c9e52eb7b7b8ec5daf8ac7e8a232)

Change-Id: Ifbbfd3ba1b4382377569abdfbfcc20e250b0a56d
Signed-off-by: Edward O'Callaghan <quasisec@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/flashrom/+/2556717
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Reviewed-by: Sam McNally <sammc@chromium.org>
Commit-Queue: Edward O'Callaghan <quasisec@chromium.org>
Commit-Queue: Sam McNally <sammc@chromium.org>
Tested-by: Edward O'Callaghan <quasisec@chromium.org>
Auto-Submit: Edward O'Callaghan <quasisec@chromium.org>
1 file changed
tree: 37df49054c80a9db14d869c3ff54831f523e81cb
  1. Documentation/
  2. tests/
  3. util/
  4. .gitattributes
  5. .gitignore
  6. 82802ab.c
  7. action_descriptor.c
  8. action_descriptor.h
  9. amd_imc.c
  10. archtest.c
  11. at45db.c
  12. atahpt.c
  13. atapromise.c
  14. atavia.c
  15. big_lock.c
  16. big_lock.h
  17. bitbang_spi.c
  18. board_enable.c
  19. buspirate_spi.c
  20. cbtable.c
  21. ch341a_spi.c
  22. chipdrivers.h
  23. chipset_enable.c
  24. cli_classic.c
  25. cli_common.c
  26. cli_output.c
  27. COPYING
  28. coreboot_tables.h
  29. cros_alias.c
  30. cros_ec.c
  31. cros_ec.h
  32. cros_ec_commands.h
  33. cros_ec_dev.c
  34. custom_baud.c
  35. custom_baud.h
  36. dediprog.c
  37. developerbox_spi.c
  38. digilent_spi.c
  39. dmi.c
  40. drkaiser.c
  41. dummyflasher.c
  42. edi.c
  43. edi.h
  44. en29lv640b.c
  45. endiantest.c
  46. ene.h
  47. ene_lpc.c
  48. file.c
  49. file.h
  50. file_lock.c
  51. flash.h
  52. flashchips.c
  53. flashchips.h
  54. flashrom.8.tmpl
  55. flashrom.c
  56. fmap.c
  57. fmap.h
  58. ft2232_spi.c
  59. gfxnvidia.c
  60. helpers.c
  61. hwaccess.c
  62. hwaccess.h
  63. i2c_helper.h
  64. i2c_helper_linux.c
  65. ich_descriptors.c
  66. ich_descriptors.h
  67. ichspi.c
  68. internal.c
  69. ipc_lock.h
  70. it8212.c
  71. it85spi.c
  72. it87spi.c
  73. jedec.c
  74. jlink_spi.c
  75. layout.c
  76. layout.h
  77. libflashrom.h
  78. linux_mtd.c
  79. linux_spi.c
  80. lspcon_i2c_spi.c
  81. m29f400bt.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.chromiumos
  115. realtek_mst_i2c_spi.c
  116. s25f.c
  117. satamv.c
  118. satasii.c
  119. sb600spi.c
  120. search.c
  121. search.h
  122. serial.c
  123. serprog.c
  124. serprog.h
  125. sfdp.c
  126. sharplhf00l04.c
  127. spi.c
  128. spi.h
  129. spi25.c
  130. spi25_statusreg.c
  131. spi4ba.c
  132. spi4ba.h
  133. spi95.c
  134. sst28sf040.c
  135. sst49lfxxxc.c
  136. sst_fwhub.c
  137. stlinkv3_spi.c
  138. stm50.c
  139. stm50flw0x0x.c
  140. udelay.c
  141. usb_device.c
  142. usb_device.h
  143. usbblaster_spi.c
  144. usbdev.c
  145. w29ee011.c
  146. w39.c
  147. wbsio_spi.c
  148. writeprotect.c
  149. writeprotect.h