UPSTREAM: satamv: 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 specified below.
TOPIC=register_master_api
TEST=builds
(cherry picked from commit 65372382c3933fca0c31cdf32e17f9d171af8840)
Original-Change-Id: I084cf826a8a594ade80eed43008e286c7bd1b553
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/+/65978
Original-Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Original-Reviewed-by: Thomas Heijligen <src@posteo.de>
Original-Reviewed-by: Anastasia Klimchuk <aklm@chromium.org>
Original-Reviewed-by: Felix Singer <felixsinger@posteo.net>
GitOrigin-RevId: 65372382c3933fca0c31cdf32e17f9d171af8840
Change-Id: If1522c7fe400daed403ddbd5ed110a2bec3083c7
Signed-off-by: CopyBot <copybot.service@gmail.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/flashrom/+/3810804
Commit-Queue: Edward O'Callaghan <quasisec@chromium.org>
Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
1 file changed