diff options
author | Edward O'Callaghan <quasisec@google.com> | 2021-05-17 20:01:27 +1000 |
---|---|---|
committer | Edward O'Callaghan <quasisec@chromium.org> | 2021-05-19 23:16:17 +0000 |
commit | 6c9dfdc971e42c1017a5edcab8012c8fcfaefacc (patch) | |
tree | 4d7fa59f32b3d3b72975aea29672f6a2504a33e0 | |
parent | cee470ecefbfdf7a1d08cb9d5cf3824c0f76e5c5 (diff) | |
download | flashrom-6c9dfdc971e42c1017a5edcab8012c8fcfaefacc.tar.gz flashrom-6c9dfdc971e42c1017a5edcab8012c8fcfaefacc.tar.bz2 flashrom-6c9dfdc971e42c1017a5edcab8012c8fcfaefacc.zip |
dummyflasher.c: Use BUS_NONSPI where appropriate
The BUS_NONSPI is short-hand and is intended to be
the collection, therefore use it.
BUG=none
BRANCH=none
TEST=builds
Change-Id: I368e8865c446d9b9ffd580c90eac034850dd53d8
Signed-off-by: Edward O'Callaghan <quasisec@google.com>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/54356
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Anastasia Klimchuk <aklm@chromium.org>
Reviewed-by: Sam McNally <sammc@google.com>
-rw-r--r-- | dummyflasher.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dummyflasher.c b/dummyflasher.c index d434eec3..e19e46cb 100644 --- a/dummyflasher.c +++ b/dummyflasher.c @@ -175,7 +175,7 @@ static void dummy_chip_readn(const struct flashctx *flash, uint8_t *buf, const c static struct emu_data* get_data_from_context(const struct flashctx *flash) { - if (dummy_buses_supported & (BUS_PARALLEL | BUS_LPC | BUS_FWH)) + if (dummy_buses_supported & BUS_NONSPI) return (struct emu_data *)flash->mst->par.data; else if (dummy_buses_supported & BUS_SPI) return (struct emu_data *)flash->mst->spi.data; @@ -1025,9 +1025,9 @@ dummy_init_out: free(data); return 1; } - if (dummy_buses_supported & (BUS_PARALLEL | BUS_LPC | BUS_FWH)) + if (dummy_buses_supported & BUS_NONSPI) register_par_master(&par_master_dummy, - dummy_buses_supported & (BUS_PARALLEL | BUS_LPC | BUS_FWH)); + dummy_buses_supported & BUS_NONSPI); if (dummy_buses_supported & BUS_SPI) register_spi_master(&spi_master_dummyflasher, data); |