aboutsummaryrefslogtreecommitdiffstats
path: root/mstarddc_spi.c
diff options
context:
space:
mode:
authorAnastasia Klimchuk <aklm@chromium.org>2021-09-27 14:44:19 +1000
committerNico Huber <nico.h@gmx.de>2021-10-10 10:25:06 +0000
commita2d09ca893edd4519a733f29c22a45c0a9a3efe3 (patch)
tree921314ddb59e7c545b9c46e0751a26940b6da2ef /mstarddc_spi.c
parent96b1a15bcc4b6fcb8039074283ef834c68e455bc (diff)
downloadflashrom-a2d09ca893edd4519a733f29c22a45c0a9a3efe3.tar.gz
flashrom-a2d09ca893edd4519a733f29c22a45c0a9a3efe3.tar.bz2
flashrom-a2d09ca893edd4519a733f29c22a45c0a9a3efe3.zip
raiden_debug_spi: Use new API to register shutdown function
This allows programmer to register shutdown function in spi_master struct, which means there is no need to call register_shutdown in init function, since this call is now a part of register_spi_master. As a consequence of using new API, two things are happening here: 1) No resource leakage anymore in case register_shutdown() would fail, 2) Fixed propagation of register_spi_master() return values. BUG=b:185191942 TEST=test in CB:57918 (Nikolai) tested probe/read/write with a servo micro and puff board Change-Id: I8927224779f24d1fda088991337e54d7272775a6 Signed-off-by: Anastasia Klimchuk <aklm@chromium.org> Tested-by: Nikolai Artemiev <nartemiev@google.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/57975 Reviewed-by: Nikolai Artemiev <nartemiev@google.com> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Nico Huber <nico.h@gmx.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'mstarddc_spi.c')
0 files changed, 0 insertions, 0 deletions