diff options
author | Anastasia Klimchuk <aklm@chromium.org> | 2021-04-12 16:52:58 +1000 |
---|---|---|
committer | Edward O'Callaghan <quasisec@chromium.org> | 2021-04-18 12:15:10 +0000 |
commit | f227cd37603da51e1315ae2b8a0f286f72288110 (patch) | |
tree | 23cd171eb2b0bbcd1220321a6c51838fc99c4943 /spi25.c | |
parent | 5f1524b22fecd16f275266a4db58607a10e57eef (diff) | |
download | flashrom-f227cd37603da51e1315ae2b8a0f286f72288110.tar.gz flashrom-f227cd37603da51e1315ae2b8a0f286f72288110.tar.bz2 flashrom-f227cd37603da51e1315ae2b8a0f286f72288110.zip |
linux_spi.c: Extract get_max_kernel_buf_size() as a function
To get max_kernel_buf_size is a piece of logic on its own, it opens
resources and closes resources, also has some local variables only
for this task. Extracting get_max_kernel_buf_size() as a separate
function simplifies init flow and allows to remove global state from linux_spi
(see next patches in this chain).
TEST=builds
BUG=b:140394053
Change-Id: I4b8c5775fb8f4b0dff702fcc0fb258221254c659
Signed-off-by: Anastasia Klimchuk <aklm@chromium.org>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/52283
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
Diffstat (limited to 'spi25.c')
0 files changed, 0 insertions, 0 deletions