aboutsummaryrefslogtreecommitdiffstats
path: root/sb600spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'sb600spi.c')
-rw-r--r--sb600spi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sb600spi.c b/sb600spi.c
index 32071b9c..c0579470 100644
--- a/sb600spi.c
+++ b/sb600spi.c
@@ -56,7 +56,7 @@ enum amd_chipset {
struct sb600spi_data {
struct flashctx *flash;
- uint8_t *sb600_spibar;
+ uint8_t *spibar;
};
static int find_smbus_dev_rev(uint16_t vendor, uint16_t device)
@@ -207,7 +207,7 @@ static int sb600_spi_send_command(const struct flashctx *flash, unsigned int wri
unsigned char *readarr)
{
struct sb600spi_data *sb600_data = flash->mst->spi.data;
- uint8_t *sb600_spibar = sb600_data->sb600_spibar;
+ uint8_t *sb600_spibar = sb600_data->spibar;
/* First byte is cmd which can not be sent through the FIFO. */
unsigned char cmd = *writearr++;
writecnt--;
@@ -295,7 +295,7 @@ static int spi100_spi_send_command(const struct flashctx *flash, unsigned int wr
unsigned char *readarr)
{
struct sb600spi_data *sb600_data = flash->mst->spi.data;
- uint8_t *sb600_spibar = sb600_data->sb600_spibar;
+ uint8_t *sb600_spibar = sb600_data->spibar;
/* First byte is cmd which can not be sent through the buffer. */
unsigned char cmd = *writearr++;
writecnt--;
@@ -784,7 +784,7 @@ int sb600_probe_spi(struct pci_dev *dev)
}
data->flash = NULL;
- data->sb600_spibar = sb600_spibar;
+ data->spibar = sb600_spibar;
register_shutdown(sb600spi_shutdown, data);