Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ACPICA: Macro header: Fix some typos in comments

ACPICA commit efc97d1d209947d6990ec81a192c6b2589d3e368

No functional change.

Link: https://github.com/acpica/acpica/commit/efc97d1
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Bob Moore and committed by
Rafael J. Wysocki
fcfb4553 04cf0537

+8 -6
+8 -6
drivers/acpi/acpica/acmacros.h
··· 46 46 47 47 /* 48 48 * Extract data using a pointer. Any more than a byte and we 49 - * get into potential aligment issues -- see the STORE macros below. 49 + * get into potential alignment issues -- see the STORE macros below. 50 50 * Use with care. 51 51 */ 52 52 #define ACPI_CAST8(ptr) ACPI_CAST_PTR (u8, (ptr)) ··· 63 63 #define ACPI_SET64(ptr, val) (*ACPI_CAST64 (ptr) = (u64) (val)) 64 64 65 65 /* 66 - * printf() format helper. This macros is a workaround for the difficulties 66 + * printf() format helper. This macro is a workaround for the difficulties 67 67 * with emitting 64-bit integers and 64-bit pointers with the same code 68 68 * for both 32-bit and 64-bit hosts. 69 69 */ ··· 260 260 261 261 #define ACPI_IS_MISALIGNED(value) (((acpi_size) value) & (sizeof(acpi_size)-1)) 262 262 263 - /* Generic (power-of-two) rounding */ 263 + /* Generic bit manipulation */ 264 264 265 265 #ifndef ACPI_USE_NATIVE_BIT_FINDER 266 266 ··· 310 310 311 311 #endif /* ACPI_USE_NATIVE_BIT_FINDER */ 312 312 313 + /* Generic (power-of-two) rounding */ 314 + 313 315 #define ACPI_ROUND_UP_POWER_OF_TWO_8(a) ((u8) \ 314 316 (((u16) 1) << ACPI_FIND_LAST_BIT_8 ((a) - 1))) 315 317 #define ACPI_ROUND_DOWN_POWER_OF_TWO_8(a) ((u8) \ ··· 332 330 * Bit positions start at zero. 333 331 * MASK_BITS_ABOVE creates a mask starting AT the position and above 334 332 * MASK_BITS_BELOW creates a mask starting one bit BELOW the position 335 - * MASK_BITS_ABOVE/BELOW accpets a bit offset to create a mask 336 - * MASK_BITS_ABOVE/BELOW_32/64 accpets a bit width to create a mask 333 + * MASK_BITS_ABOVE/BELOW accepts a bit offset to create a mask 334 + * MASK_BITS_ABOVE/BELOW_32/64 accepts a bit width to create a mask 337 335 * Note: The ACPI_INTEGER_BIT_SIZE check is used to bypass compiler 338 336 * differences with the shift operator 339 337 */ ··· 451 449 */ 452 450 #ifndef ACPI_NO_ERROR_MESSAGES 453 451 /* 454 - * Error reporting. Callers module and line number are inserted by AE_INFO, 452 + * Error reporting. The callers module and line number are inserted by AE_INFO, 455 453 * the plist contains a set of parens to allow variable-length lists. 456 454 * These macros are used for both the debug and non-debug versions of the code. 457 455 */