diff options
author | Alexander Goncharov <chat@joursoir.net> | 2022-07-12 21:44:08 +0300 |
---|---|---|
committer | Anastasia Klimchuk <aklm@chromium.org> | 2022-08-05 09:16:01 +0000 |
commit | 94d870115736187ac55d0e73f2543c8531b47d8c (patch) | |
tree | 55d5f816d6729f7bf47fe6c2e505533b7e878b2f /it8212.c | |
parent | 66dde32e1623b7f49df7a3049b59184121451491 (diff) | |
download | flashrom-94d870115736187ac55d0e73f2543c8531b47d8c.tar.gz flashrom-94d870115736187ac55d0e73f2543c8531b47d8c.tar.bz2 flashrom-94d870115736187ac55d0e73f2543c8531b47d8c.zip |
satasii: Refactor singleton states into reentrant pattern
Move global singleton states into a struct and store within
the par_master data field for the life-time of the driver.
This patchset also includes stdlib.h to be able to work with
memory allocation.
This is one of the steps on the way to move par_master data
memory management behind the initialisation API, for more
context see other patches under the same topic specified below.
TOPIC=register_master_api
TEST=builds
Change-Id: I63fea00623c149ad304b44aa6265f32ecc1c53eb
Signed-off-by: Alexander Goncharov <chat@joursoir.net>
Ticket: https://ticket.coreboot.org/issues/391
Reviewed-on: https://review.coreboot.org/c/flashrom/+/66075
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Anastasia Klimchuk <aklm@chromium.org>
Reviewed-by: Felix Singer <felixsinger@posteo.net>
Diffstat (limited to 'it8212.c')
0 files changed, 0 insertions, 0 deletions