Replace most of the switch cases in the spi code with lookup on a struct instead

This brings the SPI code in line with the generic programmer

This patch is a reworked version of a patch by Jakob Bornecrantz.

Corresponding to flashrom svn r657.

Signed-off-by: Carl-Daniel Hailfinger <>
Signed-off-by: Jakob Bornecrantz <>
Acked-by: Stefan Reinauer <>
Acked-by: Jakob Bornecrantz <>
Acked-by: Carl-Daniel Hailfinger <>
3 files changed