UPSTREAM: ichspi: Extract initialisation of swseq and hwseq into a function
Initialisation of swseq_data and hwseq_data gets its own function,
which is called from init_ich_default. This makes init_ich_default
more readable.
This patch also gives a name to (previously anonymous) struct
swseq_data. Its sibling struct hwseq_data already has a name. Structs
need names to be able to declare function parameters.
BUG=b:204488958
BRANCH=none
TEST=Check that the following scenarios still behave properly:
1) probe-read-verify-erase section-write-reboot
on Intel octopus board with GD25LQ128C/GD25LQ128D/GD25LQ128E
2) probe and read on Panther Point (7 series PCH)
Original-Change-Id: I7d62b1b380e497b82dcae1284d752204cc541bd3
Original-Tested-by: Anastasia Klimchuk <aklm@chromium.org>
Original-Tested-by: Nico Huber <nico.h@gmx.de>
Original-Signed-off-by: Anastasia Klimchuk <aklm@chromium.org>
Original-Reviewed-on: https://review.coreboot.org/c/flashrom/+/58737
Original-Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Original-Reviewed-by: Nico Huber <nico.h@gmx.de>
(cherry picked from commit 97a1683c85b1f24ff0605e7571d2f6094e32a547)
Signed-off-by: Anastasia Klimchuk <aklm@chromium.org>
Change-Id: I84709b6332c0e8988490fda6d7b93c10c1e32a67
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/flashrom/+/3439451
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
Reviewed-by: Nikolai Artemiev <nartemiev@google.com>
Commit-Queue: Edward O'Callaghan <quasisec@chromium.org>
Tested-by: Edward O'Callaghan <quasisec@chromium.org>
1 file changed