diff options
author | Alexander Goncharov <chat@joursoir.net> | 2022-06-17 08:32:47 +0300 |
---|---|---|
committer | Angel Pons <th3fanbus@gmail.com> | 2022-06-18 10:16:01 +0000 |
commit | 40997e30ac3e4789f08a8a05f134757756c18ebd (patch) | |
tree | 45d5120e43b170f89d51bbc3be981ec1c4e590b8 /atavia.c | |
parent | a721181a08430836352cb23a544e92fdc8d55b99 (diff) | |
download | flashrom-40997e30ac3e4789f08a8a05f134757756c18ebd.tar.gz flashrom-40997e30ac3e4789f08a8a05f134757756c18ebd.tar.bz2 flashrom-40997e30ac3e4789f08a8a05f134757756c18ebd.zip |
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>
Diffstat (limited to 'atavia.c')
-rw-r--r-- | atavia.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 * access, leaving the others set (yes, really). */ #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[] = { {PCI_VENDOR_ID_VIA, 0x3249, DEP, "VIA", "VT6421A"}, |