aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/pci_root.c
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2013-09-05 17:05:54 -0400
committerBjorn Helgaas <bhelgaas@google.com>2013-09-23 19:40:45 -0400
commitb938a229c85a567de7dba2d806d9f63a7c90483e (patch)
treead5f61296d196d5539f3fbda526a92dd085104c9 /drivers/acpi/pci_root.c
parentdedf1e4dfd5477b4315ad451b4be0ff8d9f7e85f (diff)
ACPI: Rename OSC_QUERY_TYPE to OSC_QUERY_DWORD
OSC_QUERY_TYPE isn't a "type"; it's an index into the _OSC Capabilities Buffer of DWORDs. Rename OSC_QUERY_TYPE, OSC_SUPPORT_TYPE, and OSC_CONTROL_TYPE to OSC_QUERY_DWORD, etc., to make this clear. No functional change. Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/pci_root.c')
-rw-r--r--drivers/acpi/pci_root.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/acpi/pci_root.c b/drivers/acpi/pci_root.c
index d3874f425653..323afd7ccfbf 100644
--- a/drivers/acpi/pci_root.c
+++ b/drivers/acpi/pci_root.c
@@ -158,14 +158,14 @@ static acpi_status acpi_pci_query_osc(struct acpi_pci_root *root,
158 support &= OSC_PCI_SUPPORT_MASKS; 158 support &= OSC_PCI_SUPPORT_MASKS;
159 support |= root->osc_support_set; 159 support |= root->osc_support_set;
160 160
161 capbuf[OSC_QUERY_TYPE] = OSC_QUERY_ENABLE; 161 capbuf[OSC_QUERY_DWORD] = OSC_QUERY_ENABLE;
162 capbuf[OSC_SUPPORT_TYPE] = support; 162 capbuf[OSC_SUPPORT_DWORD] = support;
163 if (control) { 163 if (control) {
164 *control &= OSC_PCI_CONTROL_MASKS; 164 *control &= OSC_PCI_CONTROL_MASKS;
165 capbuf[OSC_CONTROL_TYPE] = *control | root->osc_control_set; 165 capbuf[OSC_CONTROL_DWORD] = *control | root->osc_control_set;
166 } else { 166 } else {
167 /* Run _OSC query only with existing controls. */ 167 /* Run _OSC query only with existing controls. */
168 capbuf[OSC_CONTROL_TYPE] = root->osc_control_set; 168 capbuf[OSC_CONTROL_DWORD] = root->osc_control_set;
169 } 169 }
170 170
171 status = acpi_pci_run_osc(root->device->handle, capbuf, &result); 171 status = acpi_pci_run_osc(root->device->handle, capbuf, &result);
@@ -357,9 +357,9 @@ acpi_status acpi_pci_osc_control_set(acpi_handle handle, u32 *mask, u32 req)
357 goto out; 357 goto out;
358 } 358 }
359 359
360 capbuf[OSC_QUERY_TYPE] = 0; 360 capbuf[OSC_QUERY_DWORD] = 0;
361 capbuf[OSC_SUPPORT_TYPE] = root->osc_support_set; 361 capbuf[OSC_SUPPORT_DWORD] = root->osc_support_set;
362 capbuf[OSC_CONTROL_TYPE] = ctrl; 362 capbuf[OSC_CONTROL_DWORD] = ctrl;
363 status = acpi_pci_run_osc(handle, capbuf, mask); 363 status = acpi_pci_run_osc(handle, capbuf, mask);
364 if (ACPI_SUCCESS(status)) 364 if (ACPI_SUCCESS(status))
365 root->osc_control_set = *mask; 365 root->osc_control_set = *mask;