1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-04-27 23:22:37 +02:00

atavia: fix BYTE_OFFSET's macro argument value

A macro value has to use a correct argument name.

Change-Id: I666204ec92c6df625b34ca721b3e1af78772bccf
Signed-off-by: Alexander Goncharov <chat@joursoir.net>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/65193
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Singer <felixsinger@posteo.net>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
Alexander Goncharov 2022-06-17 08:32:47 +03:00 committed by Angel Pons
parent a721181a08
commit 40997e30ac

View File

@ -46,7 +46,7 @@
/* Select the byte we want to access. This is done by clearing the bit corresponding to the byte we want to /* Select the byte we want to access. This is done by clearing the bit corresponding to the byte we want to
* access, leaving the others set (yes, really). */ * access, leaving the others set (yes, really). */
#define ENABLE_BYTE(address) ((~(1 << ((address) & 3))) & BROM_BYTE_ENABLE_MASK) #define ENABLE_BYTE(address) ((~(1 << ((address) & 3))) & BROM_BYTE_ENABLE_MASK)
#define BYTE_OFFSET(address) (((addr) & 3) * 8) #define BYTE_OFFSET(address) (((address) & 3) * 8)
static const struct dev_entry ata_via[] = { static const struct dev_entry ata_via[] = {
{PCI_VENDOR_ID_VIA, 0x3249, DEP, "VIA", "VT6421A"}, {PCI_VENDOR_ID_VIA, 0x3249, DEP, "VIA", "VT6421A"},