mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-01 14:11:15 +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:
@ -146,7 +146,7 @@ static int ft2232_spi_send_command(struct flashctx *flash,
|
||||
const unsigned char *writearr,
|
||||
unsigned char *readarr);
|
||||
|
||||
static const struct spi_programmer spi_programmer_ft2232 = {
|
||||
static const struct spi_master spi_master_ft2232 = {
|
||||
.type = SPI_CONTROLLER_FT2232,
|
||||
.max_data_read = 64 * 1024,
|
||||
.max_data_write = 256,
|
||||
@ -389,7 +389,7 @@ int ft2232_spi_init(void)
|
||||
goto ftdi_err;
|
||||
}
|
||||
|
||||
register_spi_programmer(&spi_programmer_ft2232);
|
||||
register_spi_master(&spi_master_ft2232);
|
||||
|
||||
return 0;
|
||||
|
||||
|
Reference in New Issue
Block a user