diff options
| author | Toshi Kani <toshi.kani@hp.com> | 2013-03-04 16:30:41 -0500 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-03-24 18:49:38 -0400 |
| commit | d4e1a692e9e85f9cbee090ea8d6158b133d32157 (patch) | |
| tree | d6b76ddfc967c7631f0c192af06fb3b7b70047c6 /include/acpi | |
| parent | b09753ec80914424527955147c359e9ac3a87682 (diff) | |
ACPI: Remove acpi_device dependency in acpi_device_set_id()
This patch updates the internal operations of acpi_device_set_id()
to setup acpi_device_pnp without using acpi_device. There is no
functional change to acpi_device_set_id() in this patch.
acpi_pnp_type is added to acpi_device_pnp, so that PNPID type is
self-contained within acpi_device_pnp. acpi_add_id(), acpi_bay_match(),
acpi_dock_match(), acpi_ibm_smbus_match() and acpi_is_video_device()
are changed to take acpi_handle as an argument, instead of acpi_device.
Signed-off-by: Toshi Kani <toshi.kani@hp.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/acpi')
| -rw-r--r-- | include/acpi/acpi_bus.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h index 533ef039c5e0..3cb3da8ac9d9 100644 --- a/include/acpi/acpi_bus.h +++ b/include/acpi/acpi_bus.h | |||
| @@ -161,7 +161,6 @@ struct acpi_device_status { | |||
| 161 | 161 | ||
| 162 | struct acpi_device_flags { | 162 | struct acpi_device_flags { |
| 163 | u32 dynamic_status:1; | 163 | u32 dynamic_status:1; |
| 164 | u32 bus_address:1; | ||
| 165 | u32 removable:1; | 164 | u32 removable:1; |
| 166 | u32 ejectable:1; | 165 | u32 ejectable:1; |
| 167 | u32 suprise_removal_ok:1; | 166 | u32 suprise_removal_ok:1; |
| @@ -169,7 +168,7 @@ struct acpi_device_flags { | |||
| 169 | u32 performance_manageable:1; | 168 | u32 performance_manageable:1; |
| 170 | u32 eject_pending:1; | 169 | u32 eject_pending:1; |
| 171 | u32 match_driver:1; | 170 | u32 match_driver:1; |
| 172 | u32 reserved:23; | 171 | u32 reserved:24; |
| 173 | }; | 172 | }; |
| 174 | 173 | ||
| 175 | /* File System */ | 174 | /* File System */ |
| @@ -192,10 +191,17 @@ struct acpi_hardware_id { | |||
| 192 | char *id; | 191 | char *id; |
| 193 | }; | 192 | }; |
| 194 | 193 | ||
| 194 | struct acpi_pnp_type { | ||
| 195 | u32 hardware_id:1; | ||
| 196 | u32 bus_address:1; | ||
| 197 | u32 reserved:30; | ||
| 198 | }; | ||
| 199 | |||
| 195 | struct acpi_device_pnp { | 200 | struct acpi_device_pnp { |
| 196 | acpi_bus_id bus_id; /* Object name */ | 201 | acpi_bus_id bus_id; /* Object name */ |
| 202 | struct acpi_pnp_type type; /* ID type */ | ||
| 197 | acpi_bus_address bus_address; /* _ADR */ | 203 | acpi_bus_address bus_address; /* _ADR */ |
| 198 | char *unique_id; /* _UID */ | 204 | char *unique_id; /* _UID */ |
| 199 | struct list_head ids; /* _HID and _CIDs */ | 205 | struct list_head ids; /* _HID and _CIDs */ |
| 200 | acpi_device_name device_name; /* Driver-determined */ | 206 | acpi_device_name device_name; /* Driver-determined */ |
| 201 | acpi_device_class device_class; /* " */ | 207 | acpi_device_class device_class; /* " */ |
