mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-01 06:01:16 +02:00
Rename programmer registration functions
Register_programmer suggests that we register a programmer. However, that function registers a master for a given bus type, and a programmer may support multiple masters (e.g. SPI, FWH). Rename a few other functions to be more consistent. Corresponding to flashrom svn r1831. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
This commit is contained in:
@ -68,7 +68,7 @@ static int wbsio_spi_send_command(struct flashctx *flash, unsigned int writecnt,
|
||||
static int wbsio_spi_read(struct flashctx *flash, uint8_t *buf,
|
||||
unsigned int start, unsigned int len);
|
||||
|
||||
static const struct spi_programmer spi_programmer_wbsio = {
|
||||
static const struct spi_master spi_master_wbsio = {
|
||||
.type = SPI_CONTROLLER_WBSIO,
|
||||
.max_data_read = MAX_DATA_UNSPECIFIED,
|
||||
.max_data_write = MAX_DATA_UNSPECIFIED,
|
||||
@ -90,7 +90,7 @@ int wbsio_check_for_spi(void)
|
||||
msg_pdbg("%s: Winbond saved on 4 register bits so max chip size is "
|
||||
"1024 kB!\n", __func__);
|
||||
max_rom_decode.spi = 1024 * 1024;
|
||||
register_spi_programmer(&spi_programmer_wbsio);
|
||||
register_spi_master(&spi_master_wbsio);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user