From 84ba82c0e8a79ba14103aa039faf35955d277c74 Mon Sep 17 00:00:00 2001 From: Alexander Goncharov Date: Fri, 22 Jul 2022 14:42:57 +0300 Subject: it8212: Drop it8212_ prefix for par data struct members The name of the struct type already contains it8212_ prefix, so prefix doesn't need to be repeated in members name TEST=builds Change-Id: I02810d3a7ee1f8caac09d92342c5ebca6d41cbaa Signed-off-by: Alexander Goncharov Reviewed-on: https://review.coreboot.org/c/flashrom/+/66086 Tested-by: build bot (Jenkins) Reviewed-by: Felix Singer Reviewed-by: Thomas Heijligen --- it8212.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'it8212.c') diff --git a/it8212.c b/it8212.c index 028c5038e..5d624ab48 100644 --- a/it8212.c +++ b/it8212.c @@ -21,7 +21,7 @@ #include "platform/pci.h" struct it8212_data { - uint8_t *it8212_bar; + uint8_t *bar; }; #define PCI_VENDOR_ID_ITE 0x1283 @@ -39,14 +39,14 @@ static void it8212_chip_writeb(const struct flashctx *flash, uint8_t val, chipad { const struct it8212_data *data = flash->mst->par.data; - pci_mmio_writeb(val, data->it8212_bar + (addr & IT8212_MEMMAP_MASK)); + pci_mmio_writeb(val, data->bar + (addr & IT8212_MEMMAP_MASK)); } static uint8_t it8212_chip_readb(const struct flashctx *flash, const chipaddr addr) { const struct it8212_data *data = flash->mst->par.data; - return pci_mmio_readb(data->it8212_bar + (addr & IT8212_MEMMAP_MASK)); + return pci_mmio_readb(data->bar + (addr & IT8212_MEMMAP_MASK)); } static int it8212_shutdown(void *par_data) @@ -89,7 +89,7 @@ static int it8212_init(void) msg_perr("Unable to allocate space for PAR master data\n"); return 1; } - data->it8212_bar = bar; + data->bar = bar; /* Restore ROM BAR decode state automatically at shutdown. */ rpci_write_long(dev, PCI_ROM_ADDRESS, io_base_addr | 0x01); -- cgit v1.2.3