commit | b725c0cd0e1c3fb56807c197b965620ac37b996b | [log] [tgz] |
---|---|---|
author | Aarya Chaumal <aarya.chaumal@gmail.com> | Thu Jun 23 16:12:12 2022 +0530 |
committer | Nico Huber <nico.h@gmx.de> | Sun Feb 19 13:50:18 2023 +0000 |
tree | c3a2dee921479ffe469f95717254eda0c864c592 | |
parent | a7cb7e959e4510820f452d6d8da2df3b4bd4ba02 [diff] |
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> Original-Reviewed-on: https://review.coreboot.org/c/flashrom/+/65351 Original-Reviewed-by: Nico Huber <nico.h@gmx.de> Original-Reviewed-by: Simon Buhrow Original-Reviewed-by: Thomas Heijligen <src@posteo.de> Reviewed-on: https://review.coreboot.org/c/flashrom-stable/+/72537 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de>