mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-27 15:12:36 +02:00
bitbang_spi.c: Rename usages of bitbang_spi_master into master
There were two different things in this file, but both of them were called "mst" and it was confusing. Now the variables of type bitbang_spi_master are called "master", including the member of bitbang_spi_master_data. The variables of type spi_master are called mst. BUG=b:185191942 TEST=builds Change-Id: I2fdbdc2daedde7f6996642cfbb2d34ec06a89621 Signed-off-by: Anastasia Klimchuk <aklm@chromium.org> Reviewed-on: https://review.coreboot.org/c/flashrom/+/54989 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
This commit is contained in:
parent
45e0a071f1
commit
9055ef95d3
@ -95,7 +95,7 @@ static void bitbang_spi_write_byte(const struct bitbang_spi_master *master, uint
|
||||
}
|
||||
|
||||
struct bitbang_spi_master_data {
|
||||
const struct bitbang_spi_master *mst;
|
||||
const struct bitbang_spi_master *master;
|
||||
};
|
||||
|
||||
static int bitbang_spi_send_command(const struct flashctx *flash,
|
||||
@ -105,7 +105,7 @@ static int bitbang_spi_send_command(const struct flashctx *flash,
|
||||
{
|
||||
unsigned int i;
|
||||
const struct bitbang_spi_master_data *data = flash->mst->spi.data;
|
||||
const struct bitbang_spi_master *master = data->mst;
|
||||
const struct bitbang_spi_master *master = data->master;
|
||||
|
||||
/* FIXME: Run bitbang_spi_request_bus here or in programmer init?
|
||||
* Requesting and releasing the SPI bus is handled in here to allow the
|
||||
@ -160,7 +160,7 @@ int register_spi_bitbang_master(const struct bitbang_spi_master *master)
|
||||
}
|
||||
|
||||
struct bitbang_spi_master_data *data = calloc(1, sizeof(struct bitbang_spi_master_data));
|
||||
data->mst = master;
|
||||
data->master = master;
|
||||
mst.data = data;
|
||||
register_spi_master(&mst, NULL);
|
||||
register_shutdown(bitbang_spi_shutdown, data);
|
||||
|
Loading…
x
Reference in New Issue
Block a user