Commit 876fba43 authored by Jean Delvare's avatar Jean Delvare Committed by Len Brown

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: default avatarJean Delvare <khali@linux-fr.org>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 22763c5c
...@@ -1118,7 +1118,7 @@ __setup("acpi_enforce_resources=", acpi_enforce_resources_setup); ...@@ -1118,7 +1118,7 @@ __setup("acpi_enforce_resources=", acpi_enforce_resources_setup);
/* Check for resource conflicts between ACPI OperationRegions and native /* Check for resource conflicts between ACPI OperationRegions and native
* drivers */ * 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; struct acpi_res_list *res_list_elem;
int ioport; int ioport;
......
...@@ -240,7 +240,7 @@ extern int pnpacpi_disabled; ...@@ -240,7 +240,7 @@ extern int pnpacpi_disabled;
#define PXM_INVAL (-1) #define PXM_INVAL (-1)
#define NID_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, int acpi_check_region(resource_size_t start, resource_size_t n,
const char *name); const char *name);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment