UPSTREAM: atapromise: 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 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 "register_master_api".
BUG=b:185191942
TEST=builds
(cherry picked from commit 96fb37cb0f3475ec3c996888b1e2eaae4bbb42cb)
Original-Change-Id: I981e2f32926c1696bd0e3248ada92b9e37dafde0
Original-Signed-off-by: Alexander Goncharov <chat@joursoir.net>
Original-Ticket: https://ticket.coreboot.org/issues/391
Original-Reviewed-on: https://review.coreboot.org/c/flashrom/+/65706
Original-Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Original-Reviewed-by: Anastasia Klimchuk <aklm@chromium.org>
Original-Reviewed-by: Thomas Heijligen <src@posteo.de>
GitOrigin-RevId: 96fb37cb0f3475ec3c996888b1e2eaae4bbb42cb
Change-Id: I973f8d02cf9847f0b80155906246c17d40ce50e2
Signed-off-by: CopyBot <copybot.service@gmail.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/flashrom/+/3772043
Commit-Queue: Edward O'Callaghan <quasisec@chromium.org>
Reviewed-by: Sean Paul <sean@poorly.run>
Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
1 file changed