diff options
| author | Alison Schofield <alison.schofield@intel.com> | 2019-04-17 14:13:10 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-04-25 15:24:38 -0400 |
| commit | 57f5cf6ed8bdbbcb1abf3477beeac199dcdba316 (patch) | |
| tree | cfc8b84b0542d19c22214b0a6aaeef2d4fb9702e /drivers/acpi | |
| parent | e174e78efa6b2421f070ad9321545a87b2ebe28c (diff) | |
acpi/hmat: Update acpi_hmat_type enum with ACPI_HMAT_TYPE_PROXIMITY
ACPI 6.3 changed the subtable "Memory Subsystem Address Range Structure"
to "Memory Proximity Domain Attributes Structure".
Updating and renaming of the structure was included in commit:
ACPICA: ACPI 6.3: HMAT updates (9a8d961f1ef835b0d338fbe13da03cb424e87ae5)
Rename the enum type to match the subtable and structure naming.
Signed-off-by: Alison Schofield <alison.schofield@intel.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/acpi')
| -rw-r--r-- | drivers/acpi/hmat/hmat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/acpi/hmat/hmat.c b/drivers/acpi/hmat/hmat.c index 69cdb3cea545..f16656047952 100644 --- a/drivers/acpi/hmat/hmat.c +++ b/drivers/acpi/hmat/hmat.c | |||
| @@ -411,7 +411,7 @@ static int __init hmat_parse_subtable(union acpi_subtable_headers *header, | |||
| 411 | return -EINVAL; | 411 | return -EINVAL; |
| 412 | 412 | ||
| 413 | switch (hdr->type) { | 413 | switch (hdr->type) { |
| 414 | case ACPI_HMAT_TYPE_ADDRESS_RANGE: | 414 | case ACPI_HMAT_TYPE_PROXIMITY: |
| 415 | return hmat_parse_proximity_domain(header, end); | 415 | return hmat_parse_proximity_domain(header, end); |
| 416 | case ACPI_HMAT_TYPE_LOCALITY: | 416 | case ACPI_HMAT_TYPE_LOCALITY: |
| 417 | return hmat_parse_locality(header, end); | 417 | return hmat_parse_locality(header, end); |
| @@ -649,7 +649,7 @@ static __init int hmat_init(void) | |||
| 649 | goto out_put; | 649 | goto out_put; |
| 650 | } | 650 | } |
| 651 | 651 | ||
| 652 | for (i = ACPI_HMAT_TYPE_ADDRESS_RANGE; i < ACPI_HMAT_TYPE_RESERVED; i++) { | 652 | for (i = ACPI_HMAT_TYPE_PROXIMITY; i < ACPI_HMAT_TYPE_RESERVED; i++) { |
| 653 | if (acpi_table_parse_entries(ACPI_SIG_HMAT, | 653 | if (acpi_table_parse_entries(ACPI_SIG_HMAT, |
| 654 | sizeof(struct acpi_table_hmat), i, | 654 | sizeof(struct acpi_table_hmat), i, |
| 655 | hmat_parse_subtable, 0) < 0) { | 655 | hmat_parse_subtable, 0) < 0) { |
