1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-04-29 16:03:47 +02:00

sb600spi.c: Drop sb600_ prefix for spi data struct member

The name of the struct type already contains sb600spi_ prefix, so
prefix doesn't need to be repeated in members name.

BUG=b:185191942
TEST=builds

Change-Id: I001ae2044453d1bc205fa253ffb773ed993f57f8
Signed-off-by: Anastasia Klimchuk <aklm@chromium.org>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/54714
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
This commit is contained in:
Anastasia Klimchuk 2021-05-20 11:43:06 +10:00 committed by Edward O'Callaghan
parent efab1103ab
commit d6d8c14e6a

View File

@ -56,7 +56,7 @@ enum amd_chipset {
struct sb600spi_data { struct sb600spi_data {
struct flashctx *flash; struct flashctx *flash;
uint8_t *sb600_spibar; uint8_t *spibar;
}; };
static int find_smbus_dev_rev(uint16_t vendor, uint16_t device) 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) unsigned char *readarr)
{ {
struct sb600spi_data *sb600_data = flash->mst->spi.data; 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. */ /* First byte is cmd which can not be sent through the FIFO. */
unsigned char cmd = *writearr++; unsigned char cmd = *writearr++;
writecnt--; writecnt--;
@ -295,7 +295,7 @@ static int spi100_spi_send_command(const struct flashctx *flash, unsigned int wr
unsigned char *readarr) unsigned char *readarr)
{ {
struct sb600spi_data *sb600_data = flash->mst->spi.data; 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. */ /* First byte is cmd which can not be sent through the buffer. */
unsigned char cmd = *writearr++; unsigned char cmd = *writearr++;
writecnt--; writecnt--;
@ -784,7 +784,7 @@ int sb600_probe_spi(struct pci_dev *dev)
} }
data->flash = NULL; data->flash = NULL;
data->sb600_spibar = sb600_spibar; data->spibar = sb600_spibar;
register_shutdown(sb600spi_shutdown, data); register_shutdown(sb600spi_shutdown, data);