cros_ec: Blend cros_ec.c and cros_ec_dev.c

No need to spread the implementation between two distinct files.
Keeps compile-time symbol table more tidy by making internal
driver worker functions static.

BUG=b:300180551
BRANCH=none
TEST=builds

Signed-off-by: Edward O'Callaghan <quasisec@google.com>
Change-Id: Ic77ad8bf133d715b36696dd145c80313efc40884
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/flashrom/+/4861624
Tested-by: Edward O'Callaghan <quasisec@chromium.org>
Commit-Queue: Edward O'Callaghan <quasisec@chromium.org>
Reviewed-by: Sam McNally <sammc@chromium.org>
5 files changed
tree: d8ba22bd06317dcfe192c8cd44ea2ddf8cadda69
  1. .github/
  2. bindings/
  3. doc/
  4. Documentation/
  5. include/
  6. Makefile.d/
  7. meson_cross/
  8. platform/
  9. scripts/
  10. subprojects/
  11. tests/
  12. util/
  13. .gitattributes
  14. .gitignore
  15. 82802ab.c
  16. action_descriptor.c
  17. action_descriptor.h
  18. amd_imc.c
  19. asm106x.c
  20. at45db.c
  21. atahpt.c
  22. atapromise.c
  23. atavia.c
  24. big_lock.c
  25. big_lock.h
  26. bitbang_spi.c
  27. board_enable.c
  28. buspirate_spi.c
  29. cbtable.c
  30. ch341a_spi.c
  31. ch347_spi.c
  32. chipset_enable.c
  33. cli_classic.c
  34. cli_common.c
  35. cli_getopt.c
  36. cli_output.c
  37. COPYING
  38. cros_alias.c
  39. cros_ec.c
  40. cros_ec.h
  41. cros_ec_commands.h
  42. cros_ec_wp.c
  43. custom_baud.c
  44. custom_baud_darwin.c
  45. custom_baud_linux.c
  46. dediprog.c
  47. developerbox_spi.c
  48. digilent_spi.c
  49. DIR_METADATA
  50. dirtyjtag_spi.c
  51. dmi.c
  52. Doxyfile
  53. drkaiser.c
  54. dummyflasher.c
  55. edi.c
  56. en29lv640b.c
  57. erasure_layout.c
  58. file_lock.c
  59. flashchips.c
  60. flashchips_crosbl.c
  61. flashrom.c
  62. fmap.c
  63. ft2232_spi.c
  64. gfxnvidia.c
  65. helpers.c
  66. helpers_fileio.c
  67. hwaccess_physmap.c
  68. hwaccess_x86_io.c
  69. hwaccess_x86_msr.c
  70. i2c_helper_linux.c
  71. ich_descriptors.c
  72. ichspi.c
  73. internal.c
  74. internal_par.c
  75. ipc_lock.h
  76. it8212.c
  77. it87spi.c
  78. jedec.c
  79. jlink_spi.c
  80. known_boards.c
  81. layout.c
  82. libflashrom.c
  83. libflashrom.map
  84. linux_mtd.c
  85. linux_spi.c
  86. MAINTAINERS
  87. Makefile
  88. Makefile.include
  89. mcp6x_spi.c
  90. mediatek_i2c_spi.c
  91. meson.build
  92. meson_options.txt
  93. mstarddc_spi.c
  94. ni845x_spi.c
  95. nic3com.c
  96. nicintel.c
  97. nicintel_eeprom.c
  98. nicintel_spi.c
  99. nicnatsemi.c
  100. nicrealtek.c
  101. ogp_spi.c
  102. opaque.c
  103. OWNERS
  104. parade_lspcon.c
  105. parallel.c
  106. pcidev.c
  107. pickit2_spi.c
  108. pony_spi.c
  109. power.c
  110. power.h
  111. PRESUBMIT.cfg
  112. print.c
  113. print_wiki.c
  114. printlock.c
  115. processor_enable.c
  116. programmer.c
  117. programmer_table.c
  118. raiden_debug_spi.c
  119. rayer_spi.c
  120. README.chromiumos
  121. README.rst
  122. realtek_mst_i2c_spi.c
  123. s25f.c
  124. satamv.c
  125. satasii.c
  126. sb600spi.c
  127. serial.c
  128. serprog.c
  129. sfdp.c
  130. spi.c
  131. spi25.c
  132. spi25_statusreg.c
  133. spi95.c
  134. sst28sf040.c
  135. sst49lfxxxc.c
  136. sst_fwhub.c
  137. stlinkv3_spi.c
  138. stm50.c
  139. superio.c
  140. test_build.sh
  141. udelay.c
  142. unblocked_terms.txt
  143. usb_device.c
  144. usbblaster_spi.c
  145. usbdev.c
  146. VERSION
  147. w29ee011.c
  148. w39.c
  149. wbsio_spi.c
  150. writeprotect.c
  151. writeprotect_ranges.c