diff options
author | Lv Zheng <lv.zheng@intel.com> | 2012-12-19 00:38:24 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-01-10 06:36:19 -0500 |
commit | 57bf6aefc2b9c89b89bb3fca54725ceea797bb63 (patch) | |
tree | 359d9e7f1ec3203cf3f8d25eaeec5d6c2f9f549b /drivers/acpi/acpica/exregion.c | |
parent | 2f3faaba5922d3763f3e9398a2b00dc7239e2d27 (diff) |
ACPICA: Enhance the ACPI_GETx and ACPI_SETx macros.
Improve the implementation of the macros. Change the SETx macros
to the style of (destination, source). Also add ACPI_CASTx
companion macros. Lv Zheng.
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/acpica/exregion.c')
-rw-r--r-- | drivers/acpi/acpica/exregion.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/acpi/acpica/exregion.c b/drivers/acpi/acpica/exregion.c index 06a49245f410..28d3cd975490 100644 --- a/drivers/acpi/acpica/exregion.c +++ b/drivers/acpi/acpica/exregion.c | |||
@@ -239,19 +239,19 @@ acpi_ex_system_memory_space_handler(u32 function, | |||
239 | 239 | ||
240 | switch (bit_width) { | 240 | switch (bit_width) { |
241 | case 8: | 241 | case 8: |
242 | ACPI_SET8(logical_addr_ptr) = (u8)*value; | 242 | ACPI_SET8(logical_addr_ptr, *value); |
243 | break; | 243 | break; |
244 | 244 | ||
245 | case 16: | 245 | case 16: |
246 | ACPI_SET16(logical_addr_ptr) = (u16)*value; | 246 | ACPI_SET16(logical_addr_ptr, *value); |
247 | break; | 247 | break; |
248 | 248 | ||
249 | case 32: | 249 | case 32: |
250 | ACPI_SET32(logical_addr_ptr) = (u32)*value; | 250 | ACPI_SET32(logical_addr_ptr, *value); |
251 | break; | 251 | break; |
252 | 252 | ||
253 | case 64: | 253 | case 64: |
254 | ACPI_SET64(logical_addr_ptr) = (u64)*value; | 254 | ACPI_SET64(logical_addr_ptr, *value); |
255 | break; | 255 | break; |
256 | 256 | ||
257 | default: | 257 | default: |