UPSTREAM: sb600spi.c: Use one variable to store raw parameter values

Currently, each programmer parameter has their own temp variable to
store their raw value into it. That's not needed since these variables
are only used for a short time to do some configuration and stay unused
then. Thus, use only one variable for all of them.

(cherry picked from commit ca4608db6fb444752847db3de1b6d467ffdde16f)

Original-Signed-off-by: Felix Singer <felixsinger@posteo.net>
Original-Change-Id: I247012523c5e864ddb9e1e635df51e4311e5d5c5
Original-Reviewed-on: https://review.coreboot.org/c/flashrom/+/65908
Original-Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Original-Reviewed-by: Thomas Heijligen <src@posteo.de>
GitOrigin-RevId: ca4608db6fb444752847db3de1b6d467ffdde16f
Change-Id: I9f52f2b605940768a82611faae870f3ad9cf0cf5
Signed-off-by: CopyBot <copybot.service@gmail.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/flashrom/+/3831876
Reviewed-by: Evan Benn <evanbenn@chromium.org>
Reviewed-by: Nikolai Artemiev <nartemiev@google.com>
Tested-by: Evan Benn <evanbenn@chromium.org>
Commit-Queue: Evan Benn <evanbenn@chromium.org>
1 file changed
tree: de602693b75f28c0b953138df4289e0b3d56454a
  1. .github/
  2. bindings/
  3. Documentation/
  4. include/
  5. Makefile.d/
  6. platform/
  7. subprojects/
  8. tests/
  9. util/
  10. .gitattributes
  11. .gitignore
  12. 82802ab.c
  13. action_descriptor.c
  14. action_descriptor.h
  15. amd_imc.c
  16. at45db.c
  17. atahpt.c
  18. atapromise.c
  19. atavia.c
  20. big_lock.c
  21. big_lock.h
  22. bitbang_spi.c
  23. board_enable.c
  24. buspirate_spi.c
  25. cbtable.c
  26. ch341a_spi.c
  27. chipset_enable.c
  28. cli_classic.c
  29. cli_common.c
  30. cli_output.c
  31. COPYING
  32. cros_alias.c
  33. cros_ec.c
  34. cros_ec.h
  35. cros_ec_commands.h
  36. cros_ec_dev.c
  37. cros_ec_wp.c
  38. custom_baud.c
  39. custom_baud_linux.c
  40. dediprog.c
  41. developerbox_spi.c
  42. digilent_spi.c
  43. dmi.c
  44. Doxyfile
  45. drkaiser.c
  46. dummyflasher.c
  47. edi.c
  48. en29lv640b.c
  49. file_lock.c
  50. flashchips.c
  51. flashchips_crosbl.c
  52. flashrom.8.tmpl
  53. flashrom.c
  54. fmap.c
  55. ft2232_spi.c
  56. gfxnvidia.c
  57. helpers.c
  58. hwaccess_physmap.c
  59. hwaccess_x86_io.c
  60. hwaccess_x86_msr.c
  61. i2c_helper_linux.c
  62. ich_descriptors.c
  63. ichspi.c
  64. internal.c
  65. ipc_lock.h
  66. it8212.c
  67. it87spi.c
  68. jedec.c
  69. jlink_spi.c
  70. layout.c
  71. libflashrom.c
  72. libflashrom.map
  73. linux_mtd.c
  74. linux_spi.c
  75. MAINTAINERS
  76. Makefile
  77. Makefile.include
  78. mcp6x_spi.c
  79. mediatek_i2c_spi.c
  80. meson.build
  81. meson_options.txt
  82. mstarddc_spi.c
  83. ni845x_spi.c
  84. nic3com.c
  85. nicintel.c
  86. nicintel_eeprom.c
  87. nicintel_spi.c
  88. nicnatsemi.c
  89. nicrealtek.c
  90. ogp_spi.c
  91. opaque.c
  92. opaque_statusreg.c
  93. OWNERS
  94. parade_lspcon.c
  95. pcidev.c
  96. pickit2_spi.c
  97. pony_spi.c
  98. power.c
  99. power.h
  100. PRESUBMIT.cfg
  101. print.c
  102. print_wiki.c
  103. processor_enable.c
  104. programmer.c
  105. programmer_table.c
  106. raiden_debug_spi.c
  107. rayer_spi.c
  108. README
  109. README.chromiumos
  110. realtek_mst_i2c_spi.c
  111. s25f.c
  112. satamv.c
  113. satasii.c
  114. sb600spi.c
  115. serial.c
  116. serprog.c
  117. sfdp.c
  118. spi.c
  119. spi25.c
  120. spi25_statusreg.c
  121. spi95.c
  122. sst28sf040.c
  123. sst49lfxxxc.c
  124. sst_fwhub.c
  125. stlinkv3_spi.c
  126. stm50.c
  127. udelay.c
  128. unblocked_terms.txt
  129. usb_device.c
  130. usbblaster_spi.c
  131. usbdev.c
  132. w29ee011.c
  133. w39.c
  134. wbsio_spi.c
  135. writeprotect.c
  136. writeprotect_ranges.c