UPSTREAM: tree/: Convert unlock func ptr into enumerate values
Converting the blockprotect unlock function pointer
within the flashchip struct into enum values allows for
the flashchips db to be turn into pure, declarative data.
A nice side-effect of this is to reduce link-time symbol
space of chipdrivers and increase modularity of the
spi25_statusreg.c and related implementations.
BUG=none
TEST=ninja test.
(cherry picked from commit 0c774d6b6a075f37f21ca9c3506141cb0d4ae34b)
Original-Change-Id: Ie5c5db1b09d07e1a549990d6f5a622fae4c83233
Original-Signed-off-by: Edward O'Callaghan <quasisec@google.com>
Original-Reviewed-on: https://review.coreboot.org/c/flashrom/+/69933
Original-Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Original-Reviewed-by: Sam McNally <sammc@google.com>
Original-Reviewed-by: Anastasia Klimchuk <aklm@chromium.org>
GitOrigin-RevId: 0c774d6b6a075f37f21ca9c3506141cb0d4ae34b
Change-Id: Ic43770d7e27a17d4b89a46ff507283d1a1bf11ad
Signed-off-by: CopyBot <copybot.service@gmail.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/flashrom/+/4355154
Commit-Queue: Edward O'Callaghan <quasisec@chromium.org>
Reviewed-by: Sean Paul <sean@poorly.run>
Reviewed-by: Peter Marheine <pmarheine@chromium.org>
8 files changed