diff options
author | Jean Delvare <khali@linux-fr.org> | 2009-11-11 15:22:15 +0100 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2009-12-09 20:44:42 +0100 |
commit | 876fba43cc810e3c37ce26995933f9547b83cb0e (patch) | |
tree | ad61e29807e607b02e4ff7c68ac53e4005828419 | |
parent | Linux 2.6.32 (diff) | |
download | linux-876fba43cc810e3c37ce26995933f9547b83cb0e.tar.xz linux-876fba43cc810e3c37ce26995933f9547b83cb0e.zip |
ACPI: add const to acpi_check_resource_conflict()
acpi_check_resource_conflict() doesn't change the resource
it operates on, so the res parameter can be marked const.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Len Brown <len.brown@intel.com>
-rw-r--r-- | drivers/acpi/osl.c | 2 | ||||
-rw-r--r-- | include/linux/acpi.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c index 7c1c59ea9ec6..02e8464e480f 100644 --- a/drivers/acpi/osl.c +++ b/drivers/acpi/osl.c @@ -1118,7 +1118,7 @@ __setup("acpi_enforce_resources=", acpi_enforce_resources_setup); /* Check for resource conflicts between ACPI OperationRegions and native * drivers */ -int acpi_check_resource_conflict(struct resource *res) +int acpi_check_resource_conflict(const struct resource *res) { struct acpi_res_list *res_list_elem; int ioport; diff --git a/include/linux/acpi.h b/include/linux/acpi.h index dfcd920c3e54..c920d2def4d3 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h @@ -240,7 +240,7 @@ extern int pnpacpi_disabled; #define PXM_INVAL (-1) #define NID_INVAL (-1) -int acpi_check_resource_conflict(struct resource *res); +int acpi_check_resource_conflict(const struct resource *res); int acpi_check_region(resource_size_t start, resource_size_t n, const char *name); |