diff options
Diffstat (limited to 'include/acpi/acpi_bus.h')
-rw-r--r-- | include/acpi/acpi_bus.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h index 5e3dcf3299bf..3d0fea235bf3 100644 --- a/include/acpi/acpi_bus.h +++ b/include/acpi/acpi_bus.h | |||
@@ -131,7 +131,7 @@ struct acpi_device_ops { | |||
131 | struct acpi_driver { | 131 | struct acpi_driver { |
132 | char name[80]; | 132 | char name[80]; |
133 | char class[80]; | 133 | char class[80]; |
134 | char *ids; /* Supported Hardware IDs */ | 134 | const struct acpi_device_id *ids; /* Supported Hardware IDs */ |
135 | struct acpi_device_ops ops; | 135 | struct acpi_device_ops ops; |
136 | struct device_driver drv; | 136 | struct device_driver drv; |
137 | struct module *owner; | 137 | struct module *owner; |
@@ -341,7 +341,8 @@ int acpi_bus_add(struct acpi_device **child, struct acpi_device *parent, | |||
341 | int acpi_bus_trim(struct acpi_device *start, int rmdevice); | 341 | int acpi_bus_trim(struct acpi_device *start, int rmdevice); |
342 | int acpi_bus_start(struct acpi_device *device); | 342 | int acpi_bus_start(struct acpi_device *device); |
343 | acpi_status acpi_bus_get_ejd(acpi_handle handle, acpi_handle * ejd); | 343 | acpi_status acpi_bus_get_ejd(acpi_handle handle, acpi_handle * ejd); |
344 | int acpi_match_ids(struct acpi_device *device, char *ids); | 344 | int acpi_match_device_ids(struct acpi_device *device, |
345 | const struct acpi_device_id *ids); | ||
345 | int acpi_create_dir(struct acpi_device *); | 346 | int acpi_create_dir(struct acpi_device *); |
346 | void acpi_remove_dir(struct acpi_device *); | 347 | void acpi_remove_dir(struct acpi_device *); |
347 | 348 | ||
@@ -365,6 +366,17 @@ acpi_handle acpi_get_child(acpi_handle, acpi_integer); | |||
365 | acpi_handle acpi_get_pci_rootbridge_handle(unsigned int, unsigned int); | 366 | acpi_handle acpi_get_pci_rootbridge_handle(unsigned int, unsigned int); |
366 | #define DEVICE_ACPI_HANDLE(dev) ((acpi_handle)((dev)->archdata.acpi_handle)) | 367 | #define DEVICE_ACPI_HANDLE(dev) ((acpi_handle)((dev)->archdata.acpi_handle)) |
367 | 368 | ||
369 | #ifdef CONFIG_PM_SLEEP | ||
370 | int acpi_pm_device_sleep_state(struct device *, int, int *); | ||
371 | #else /* !CONFIG_PM_SLEEP */ | ||
372 | static inline int acpi_pm_device_sleep_state(struct device *d, int w, int *p) | ||
373 | { | ||
374 | if (p) | ||
375 | *p = ACPI_STATE_D0; | ||
376 | return ACPI_STATE_D3; | ||
377 | } | ||
378 | #endif /* !CONFIG_PM_SLEEP */ | ||
379 | |||
368 | #endif /* CONFIG_ACPI */ | 380 | #endif /* CONFIG_ACPI */ |
369 | 381 | ||
370 | #endif /*__ACPI_BUS_H__*/ | 382 | #endif /*__ACPI_BUS_H__*/ |