diff options
author | Edward O'Callaghan <quasisec@google.com> | 2020-04-03 12:52:32 +1100 |
---|---|---|
committer | Edward O'Callaghan <quasisec@chromium.org> | 2020-05-05 00:45:45 +0000 |
commit | 757e89243efd7e783923d486c542a692072e0111 (patch) | |
tree | 0fffc715f4eb807f9356a39a98334135e684ff15 /coreboot_tables.h | |
parent | 413d6ec673c746342395723639bbe7fa8a2281ee (diff) | |
download | flashrom-757e89243efd7e783923d486c542a692072e0111.tar.gz flashrom-757e89243efd7e783923d486c542a692072e0111.tar.bz2 flashrom-757e89243efd7e783923d486c542a692072e0111.zip |
raiden_debug_spi.c: Clean up global state
The Chromium flashrom fork has very poor dispatch logic whereas
upstream has proper inversion of control with a generic 'data'
void * member to stuff long-lived state in. Leverage the member
to store the USB descriptor state in during the life-time of the
spi master.
V.2: Remove unnecessary indirection as is the case in
commit a25c13cdb601f9d43b0f8edad96f9489efcb4b37.
BUG=b:140394053
BRANCH=none
TEST=builds && detects flashchip name.
Change-Id: Ida9dce97fef2c6dfd68a278c879917fdd3ff7fef
Signed-off-by: Edward O'Callaghan <quasisec@google.com>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/40105
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Reviewed-by: Sam McNally <sammc@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'coreboot_tables.h')
0 files changed, 0 insertions, 0 deletions