diff options
author | Jiang Liu <jiang.liu@linux.intel.com> | 2015-02-01 21:43:01 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2015-02-03 16:27:23 -0500 |
commit | 62d1141ff34e35de496ba06491c8e854b23b3f3e (patch) | |
tree | 597c240e33d2b97579fa60f7141a29e727f66b48 /include/linux/acpi.h | |
parent | 93286f4798590e711aa395503401f8632fb74f9a (diff) |
ACPI: Introduce helper function acpi_dev_filter_resource_type()
Introduce helper function acpi_dev_filter_resource_type(), which may
be used by acpi_dev_get_resources() to filer out resource based on
resource type.
Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/linux/acpi.h')
-rw-r--r-- | include/linux/acpi.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/acpi.h b/include/linux/acpi.h index 21dac3cb62d2..e818decb631f 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h | |||
@@ -310,6 +310,14 @@ void acpi_dev_free_resource_list(struct list_head *list); | |||
310 | int acpi_dev_get_resources(struct acpi_device *adev, struct list_head *list, | 310 | int acpi_dev_get_resources(struct acpi_device *adev, struct list_head *list, |
311 | int (*preproc)(struct acpi_resource *, void *), | 311 | int (*preproc)(struct acpi_resource *, void *), |
312 | void *preproc_data); | 312 | void *preproc_data); |
313 | int acpi_dev_filter_resource_type(struct acpi_resource *ares, | ||
314 | unsigned long types); | ||
315 | |||
316 | static inline int acpi_dev_filter_resource_type_cb(struct acpi_resource *ares, | ||
317 | void *arg) | ||
318 | { | ||
319 | return acpi_dev_filter_resource_type(ares, (unsigned long)arg); | ||
320 | } | ||
313 | 321 | ||
314 | int acpi_check_resource_conflict(const struct resource *res); | 322 | int acpi_check_resource_conflict(const struct resource *res); |
315 | 323 | ||