aboutsummaryrefslogtreecommitdiff
path: root/source/components/hardware/hwregs.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/components/hardware/hwregs.c')
-rw-r--r--source/components/hardware/hwregs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/components/hardware/hwregs.c b/source/components/hardware/hwregs.c
index e90fd14829ee..b5b23831fe9d 100644
--- a/source/components/hardware/hwregs.c
+++ b/source/components/hardware/hwregs.c
@@ -228,7 +228,7 @@ AcpiHwGetAccessBitWidth (
}
else if (Reg->AccessWidth)
{
- AccessBitWidth = (1 << (Reg->AccessWidth + 2));
+ AccessBitWidth = ACPI_ACCESS_BIT_WIDTH (Reg->AccessWidth);
}
else
{