summaryrefslogtreecommitdiffstats
path: root/it85spi.c
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2014-07-19 22:03:29 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2014-07-19 22:03:29 +0000
commita5bcbceb581f27cfc0055369d3dd9cfd1ae00bfa (patch)
tree5daecd880a16b7011be28e064fb7550f3e6b7e58 /it85spi.c
parent82b6ec1df30d3fca55547f230c76718d6e613b2a (diff)
downloadflashrom-a5bcbceb581f27cfc0055369d3dd9cfd1ae00bfa.tar.gz
flashrom-a5bcbceb581f27cfc0055369d3dd9cfd1ae00bfa.tar.bz2
flashrom-a5bcbceb581f27cfc0055369d3dd9cfd1ae00bfa.zip
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>
Diffstat (limited to 'it85spi.c')
-rw-r--r--it85spi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/it85spi.c b/it85spi.c
index 7efc680ef..1cc87308e 100644
--- a/it85spi.c
+++ b/it85spi.c
@@ -279,7 +279,7 @@ static int it85xx_spi_send_command(struct flashctx *flash,
const unsigned char *writearr,
unsigned char *readarr);
-static const struct spi_programmer spi_programmer_it85xx = {
+static const struct spi_master spi_master_it85xx = {
.type = SPI_CONTROLLER_IT85XX,
.max_data_read = 64,
.max_data_write = 64,
@@ -315,7 +315,7 @@ int it85xx_spi_init(struct superio s)
* a debug message about it.
*/
/* Set this as SPI controller. */
- register_spi_programmer(&spi_programmer_it85xx);
+ register_spi_master(&spi_master_it85xx);
}
return ret;
}