Commit 70b30fb1 authored by Al Viro's avatar Al Viro Committed by Len Brown

ACPI: Fix a warning of discarding qualifiers from pointer target type

drivers/acpi/ec.c: In function `acpi_ec_ecdt_probe':
drivers/acpi/ec.c:873: warning: passing arg 1 of `acpi_get_devices' discards qualifiers from pointer target type
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent ead77594
...@@ -540,7 +540,7 @@ acpi_ns_get_device_callback(acpi_handle obj_handle, ...@@ -540,7 +540,7 @@ acpi_ns_get_device_callback(acpi_handle obj_handle,
******************************************************************************/ ******************************************************************************/
acpi_status acpi_status
acpi_get_devices(char *HID, acpi_get_devices(const char *HID,
acpi_walk_callback user_function, acpi_walk_callback user_function,
void *context, void **return_value) void *context, void **return_value)
{ {
......
...@@ -130,7 +130,7 @@ acpi_walk_namespace(acpi_object_type type, ...@@ -130,7 +130,7 @@ acpi_walk_namespace(acpi_object_type type,
void *context, void **return_value); void *context, void **return_value);
acpi_status acpi_status
acpi_get_devices(char *HID, acpi_get_devices(const char *HID,
acpi_walk_callback user_function, acpi_walk_callback user_function,
void *context, void **return_value); void *context, void **return_value);
......
...@@ -146,7 +146,7 @@ struct acpi_init_walk_info { ...@@ -146,7 +146,7 @@ struct acpi_init_walk_info {
struct acpi_get_devices_info { struct acpi_get_devices_info {
acpi_walk_callback user_function; acpi_walk_callback user_function;
void *context; void *context;
char *hid; const char *hid;
}; };
union acpi_aml_operands { union acpi_aml_operands {
......
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