aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2012-12-20 18:36:48 -0500
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-01-03 07:09:40 -0500
commit209d3b1743c8187c67cc75dbe9fefbcd3121fba0 (patch)
tree2be44cbd0a71a498defbd3fbcd8a834e919ca8a9 /include
parente3863094c6f9b2f980d6e7a5cad6b4d03a4dd579 (diff)
ACPI: Replace ACPI device add_type field with a match_driver flag
After the removal of the second argument of acpi_bus_scan() there is no difference between the ACPI_BUS_ADD_MATCH and ACPI_BUS_ADD_START add types, so the add_type field in struct acpi_device may be replaced with a single flag. Do that calling the flag match_driver. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Acked-by: Yinghai Lu <yinghai@kernel.org> Acked-by: Toshi Kani <toshi.kani@hp.com>
Diffstat (limited to 'include')
-rw-r--r--include/acpi/acpi_bus.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h
index 75c6b3f2250d..056cb0cd8eff 100644
--- a/include/acpi/acpi_bus.h
+++ b/include/acpi/acpi_bus.h
@@ -63,13 +63,6 @@ acpi_get_physical_device_location(acpi_handle handle, struct acpi_pld_info **pld
63#define ACPI_BUS_FILE_ROOT "acpi" 63#define ACPI_BUS_FILE_ROOT "acpi"
64extern struct proc_dir_entry *acpi_root_dir; 64extern struct proc_dir_entry *acpi_root_dir;
65 65
66enum acpi_bus_add_type {
67 ACPI_BUS_ADD_BASIC = 0,
68 ACPI_BUS_ADD_MATCH,
69 ACPI_BUS_ADD_START,
70 ACPI_BUS_ADD_TYPE_COUNT
71};
72
73enum acpi_bus_removal_type { 66enum acpi_bus_removal_type {
74 ACPI_BUS_REMOVAL_NORMAL = 0, 67 ACPI_BUS_REMOVAL_NORMAL = 0,
75 ACPI_BUS_REMOVAL_EJECT, 68 ACPI_BUS_REMOVAL_EJECT,
@@ -150,7 +143,8 @@ struct acpi_device_flags {
150 u32 power_manageable:1; 143 u32 power_manageable:1;
151 u32 performance_manageable:1; 144 u32 performance_manageable:1;
152 u32 eject_pending:1; 145 u32 eject_pending:1;
153 u32 reserved:24; 146 u32 match_driver:1;
147 u32 reserved:23;
154}; 148};
155 149
156/* File System */ 150/* File System */
@@ -285,7 +279,6 @@ struct acpi_device {
285 struct acpi_driver *driver; 279 struct acpi_driver *driver;
286 void *driver_data; 280 void *driver_data;
287 struct device dev; 281 struct device dev;
288 enum acpi_bus_add_type add_type; /* how to handle adding */
289 enum acpi_bus_removal_type removal_type; /* indicate for different removal type */ 282 enum acpi_bus_removal_type removal_type; /* indicate for different removal type */
290 u8 physical_node_count; 283 u8 physical_node_count;
291 struct list_head physical_node_list; 284 struct list_head physical_node_list;