summaryrefslogtreecommitdiffstats
path: root/include/acpi/actypes.h
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-03-10 08:12:46 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-03-10 08:12:46 +0100
commit8e567ed9e244f6af2ecfd22a7204612ec361d334 (patch)
treebf558612f56dcdd862ead3fefd1aa5abaac15688 /include/acpi/actypes.h
parent6701adfa9693bd20b89f2cce57754ced2c18ed3b (diff)
parent2c523b344dfa65a3738e7039832044aa133c75fb (diff)
downloadlinux-8e567ed9e244f6af2ecfd22a7204612ec361d334.tar.gz
linux-8e567ed9e244f6af2ecfd22a7204612ec361d334.tar.bz2
linux-8e567ed9e244f6af2ecfd22a7204612ec361d334.zip
Merge 5.6-rc5 into usb-next
We need the USB fixes in here as well. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/acpi/actypes.h')
-rw-r--r--include/acpi/actypes.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/acpi/actypes.h b/include/acpi/actypes.h
index a2583c2bc054..4defed58ea33 100644
--- a/include/acpi/actypes.h
+++ b/include/acpi/actypes.h
@@ -532,11 +532,12 @@ typedef u64 acpi_integer;
strnlen (a, ACPI_NAMESEG_SIZE) == ACPI_NAMESEG_SIZE)
/*
- * Algorithm to obtain access bit width.
+ * Algorithm to obtain access bit or byte width.
* Can be used with access_width of struct acpi_generic_address and access_size of
* struct acpi_resource_generic_register.
*/
#define ACPI_ACCESS_BIT_WIDTH(size) (1 << ((size) + 2))
+#define ACPI_ACCESS_BYTE_WIDTH(size) (1 << ((size) - 1))
/*******************************************************************************
*