aboutsummaryrefslogtreecommitdiff
path: root/tests/acpi-utils.h
diff options
context:
space:
mode:
authorIgor Mammedov <imammedo@redhat.com>2018-12-10 19:10:07 +0100
committerThomas Huth <thuth@redhat.com>2018-12-17 15:37:55 +0100
commitda15af649769813dc411fc0a0fd5055ac5a4e74f (patch)
tree2ba00e133ece841abe280c1ae61d8e64afe5f0d3 /tests/acpi-utils.h
parent21f80286cc48142c2df1530eba32bd70131a1bdc (diff)
tests: acpi: remove not used ACPI_READ_GENERIC_ADDRESS macro
Signed-off-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> [thuth: Fixed conflicts with additional "qts" parameter] Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'tests/acpi-utils.h')
-rw-r--r--tests/acpi-utils.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/tests/acpi-utils.h b/tests/acpi-utils.h
index a06a4ed964..791bd5410e 100644
--- a/tests/acpi-utils.h
+++ b/tests/acpi-utils.h
@@ -70,14 +70,6 @@ typedef struct {
g_assert_cmpstr(ACPI_ASSERT_CMP_str, ==, expected); \
} while (0)
-#define ACPI_READ_GENERIC_ADDRESS(qts, field, addr) \
- do { \
- ACPI_READ_FIELD(qts, (field).space_id, addr); \
- ACPI_READ_FIELD(qts, (field).bit_width, addr); \
- ACPI_READ_FIELD(qts, (field).bit_offset, addr); \
- ACPI_READ_FIELD(qts, (field).access_width, addr); \
- ACPI_READ_FIELD(qts, (field).address, addr); \
- } while (0)
uint8_t acpi_calc_checksum(const uint8_t *data, int len);