mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-27 23:22:37 +02:00
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 <chat@joursoir.net> Reviewed-on: https://review.coreboot.org/c/flashrom/+/66086 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Singer <felixsinger@posteo.net> Reviewed-by: Thomas Heijligen <src@posteo.de>
This commit is contained in:
parent
e182b174f7
commit
84ba82c0e8
8
it8212.c
8
it8212.c
@ -21,7 +21,7 @@
|
|||||||
#include "platform/pci.h"
|
#include "platform/pci.h"
|
||||||
|
|
||||||
struct it8212_data {
|
struct it8212_data {
|
||||||
uint8_t *it8212_bar;
|
uint8_t *bar;
|
||||||
};
|
};
|
||||||
|
|
||||||
#define PCI_VENDOR_ID_ITE 0x1283
|
#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;
|
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)
|
static uint8_t it8212_chip_readb(const struct flashctx *flash, const chipaddr addr)
|
||||||
{
|
{
|
||||||
const struct it8212_data *data = flash->mst->par.data;
|
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)
|
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");
|
msg_perr("Unable to allocate space for PAR master data\n");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
data->it8212_bar = bar;
|
data->bar = bar;
|
||||||
|
|
||||||
/* Restore ROM BAR decode state automatically at shutdown. */
|
/* Restore ROM BAR decode state automatically at shutdown. */
|
||||||
rpci_write_long(dev, PCI_ROM_ADDRESS, io_base_addr | 0x01);
|
rpci_write_long(dev, PCI_ROM_ADDRESS, io_base_addr | 0x01);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user