summaryrefslogtreecommitdiffstats
path: root/atavia.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
commitd441ea8ea864bda6b0d6c918da6da918579cf410 (patch)
tree5daecd880a16b7011be28e064fb7550f3e6b7e58 /atavia.c
parent6ba24a08730cd186fdbc32e2159ed299c210346b (diff)
downloadflashrom-d441ea8ea864bda6b0d6c918da6da918579cf410.zip
flashrom-d441ea8ea864bda6b0d6c918da6da918579cf410.tar.gz
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 'atavia.c')
-rw-r--r--atavia.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/atavia.c b/atavia.c
index ef71dfa..72ec209 100644
--- a/atavia.c
+++ b/atavia.c
@@ -60,7 +60,7 @@ const struct dev_entry ata_via[] = {
static void atavia_chip_writeb(const struct flashctx *flash, uint8_t val, chipaddr addr);
static uint8_t atavia_chip_readb(const struct flashctx *flash, const chipaddr addr);
-static const struct par_programmer lpc_programmer_atavia = {
+static const struct par_master lpc_master_atavia = {
.chip_readb = atavia_chip_readb,
.chip_readw = fallback_chip_readw,
.chip_readl = fallback_chip_readl,
@@ -164,7 +164,7 @@ int atavia_init(void)
return 1;
}
- register_par_programmer(&lpc_programmer_atavia, BUS_LPC);
+ register_par_master(&lpc_master_atavia, BUS_LPC);
return 0;
}
OpenPOWER on IntegriCloud