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:
@ -55,7 +55,7 @@ const struct dev_entry devs_usbblasterspi[] = {
|
||||
{}
|
||||
};
|
||||
|
||||
static const struct spi_programmer spi_programmer_usbblaster;
|
||||
static const struct spi_master spi_master_usbblaster;
|
||||
|
||||
static struct ftdi_context ftdic;
|
||||
|
||||
@ -117,7 +117,7 @@ int usbblaster_spi_init(void)
|
||||
return -1;
|
||||
}
|
||||
|
||||
register_spi_programmer(&spi_programmer_usbblaster);
|
||||
register_spi_master(&spi_master_usbblaster);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -211,7 +211,7 @@ static int usbblaster_spi_send_command(struct flashctx *flash, unsigned int writ
|
||||
}
|
||||
|
||||
|
||||
static const struct spi_programmer spi_programmer_usbblaster = {
|
||||
static const struct spi_master spi_master_usbblaster = {
|
||||
.type = SPI_CONTROLLER_USBBLASTER,
|
||||
.max_data_read = 256,
|
||||
.max_data_write = 256,
|
||||
|
Reference in New Issue
Block a user