aboutsummaryrefslogtreecommitdiffstats
path: root/pony_spi.c
diff options
context:
space:
mode:
authorAarya Chaumal <aarya.chaumal@gmail.com>2022-06-23 16:12:12 +0530
committerThomas Heijligen <src@posteo.de>2022-06-27 08:52:45 +0000
commit2343ad9ffe0bc1ce45567ff6abcc40f2e4a5f3a7 (patch)
tree9b0a8a5c91bbe08c696e62dcd12ef66909dd5564 /pony_spi.c
parentf56a0322f4dd67c8829df31f0ee66566dfddb4e1 (diff)
downloadflashrom-2343ad9ffe0bc1ce45567ff6abcc40f2e4a5f3a7.tar.gz
flashrom-2343ad9ffe0bc1ce45567ff6abcc40f2e4a5f3a7.tar.bz2
flashrom-2343ad9ffe0bc1ce45567ff6abcc40f2e4a5f3a7.zip
spi25.c: Add a list to lookup erasefn and opcode instead of switch case
Add a list (erasefn, opcode) which maps opcodes to erase functions. Modify the spi_get_opcode_from_erasefn to use this list. Change-Id: I126f88c313ad309b509b367f9087235b87df6136 Signed-off-by: Aarya Chaumal <aarya.chaumal@gmail.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/65351 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de> Reviewed-by: Simon Buhrow Reviewed-by: Thomas Heijligen <src@posteo.de>
Diffstat (limited to 'pony_spi.c')
0 files changed, 0 insertions, 0 deletions