Commit fcfb4553 authored by Bob Moore's avatar Bob Moore Committed by Rafael J. Wysocki

ACPICA: Macro header: Fix some typos in comments

ACPICA commit efc97d1d209947d6990ec81a192c6b2589d3e368

No functional change.

Link: https://github.com/acpica/acpica/commit/efc97d1Signed-off-by: default avatarBob Moore <robert.moore@intel.com>
Signed-off-by: default avatarLv Zheng <lv.zheng@intel.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 04cf0537
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
/* /*
* Extract data using a pointer. Any more than a byte and we * Extract data using a pointer. Any more than a byte and we
* get into potential aligment issues -- see the STORE macros below. * get into potential alignment issues -- see the STORE macros below.
* Use with care. * Use with care.
*/ */
#define ACPI_CAST8(ptr) ACPI_CAST_PTR (u8, (ptr)) #define ACPI_CAST8(ptr) ACPI_CAST_PTR (u8, (ptr))
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
#define ACPI_SET64(ptr, val) (*ACPI_CAST64 (ptr) = (u64) (val)) #define ACPI_SET64(ptr, val) (*ACPI_CAST64 (ptr) = (u64) (val))
/* /*
* printf() format helper. This macros is a workaround for the difficulties * printf() format helper. This macro is a workaround for the difficulties
* with emitting 64-bit integers and 64-bit pointers with the same code * with emitting 64-bit integers and 64-bit pointers with the same code
* for both 32-bit and 64-bit hosts. * for both 32-bit and 64-bit hosts.
*/ */
...@@ -260,7 +260,7 @@ ...@@ -260,7 +260,7 @@
#define ACPI_IS_MISALIGNED(value) (((acpi_size) value) & (sizeof(acpi_size)-1)) #define ACPI_IS_MISALIGNED(value) (((acpi_size) value) & (sizeof(acpi_size)-1))
/* Generic (power-of-two) rounding */ /* Generic bit manipulation */
#ifndef ACPI_USE_NATIVE_BIT_FINDER #ifndef ACPI_USE_NATIVE_BIT_FINDER
...@@ -310,6 +310,8 @@ ...@@ -310,6 +310,8 @@
#endif /* ACPI_USE_NATIVE_BIT_FINDER */ #endif /* ACPI_USE_NATIVE_BIT_FINDER */
/* Generic (power-of-two) rounding */
#define ACPI_ROUND_UP_POWER_OF_TWO_8(a) ((u8) \ #define ACPI_ROUND_UP_POWER_OF_TWO_8(a) ((u8) \
(((u16) 1) << ACPI_FIND_LAST_BIT_8 ((a) - 1))) (((u16) 1) << ACPI_FIND_LAST_BIT_8 ((a) - 1)))
#define ACPI_ROUND_DOWN_POWER_OF_TWO_8(a) ((u8) \ #define ACPI_ROUND_DOWN_POWER_OF_TWO_8(a) ((u8) \
...@@ -330,8 +332,8 @@ ...@@ -330,8 +332,8 @@
* Bit positions start at zero. * Bit positions start at zero.
* MASK_BITS_ABOVE creates a mask starting AT the position and above * MASK_BITS_ABOVE creates a mask starting AT the position and above
* MASK_BITS_BELOW creates a mask starting one bit BELOW the position * MASK_BITS_BELOW creates a mask starting one bit BELOW the position
* MASK_BITS_ABOVE/BELOW accpets a bit offset to create a mask * MASK_BITS_ABOVE/BELOW accepts a bit offset to create a mask
* MASK_BITS_ABOVE/BELOW_32/64 accpets a bit width to create a mask * MASK_BITS_ABOVE/BELOW_32/64 accepts a bit width to create a mask
* Note: The ACPI_INTEGER_BIT_SIZE check is used to bypass compiler * Note: The ACPI_INTEGER_BIT_SIZE check is used to bypass compiler
* differences with the shift operator * differences with the shift operator
*/ */
...@@ -449,7 +451,7 @@ ...@@ -449,7 +451,7 @@
*/ */
#ifndef ACPI_NO_ERROR_MESSAGES #ifndef ACPI_NO_ERROR_MESSAGES
/* /*
* Error reporting. Callers module and line number are inserted by AE_INFO, * Error reporting. The callers module and line number are inserted by AE_INFO,
* the plist contains a set of parens to allow variable-length lists. * the plist contains a set of parens to allow variable-length lists.
* These macros are used for both the debug and non-debug versions of the code. * These macros are used for both the debug and non-debug versions of the code.
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment