mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-02 06:23:18 +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:
@ -46,7 +46,7 @@ static int linux_spi_read(struct flashctx *flash, uint8_t *buf,
|
||||
static int linux_spi_write_256(struct flashctx *flash, const uint8_t *buf,
|
||||
unsigned int start, unsigned int len);
|
||||
|
||||
static const struct spi_programmer spi_programmer_linux = {
|
||||
static const struct spi_master spi_master_linux = {
|
||||
.type = SPI_CONTROLLER_LINUX,
|
||||
.max_data_read = MAX_DATA_UNSPECIFIED, /* TODO? */
|
||||
.max_data_write = MAX_DATA_UNSPECIFIED, /* TODO? */
|
||||
@ -120,7 +120,7 @@ int linux_spi_init(void)
|
||||
return 1;
|
||||
}
|
||||
|
||||
register_spi_programmer(&spi_programmer_linux);
|
||||
register_spi_master(&spi_master_linux);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user