ACPI: Fix a warning of discarding qualifiers from pointer target type
authorAl Viro <viro@ftp.linux.org.uk>
Tue, 21 Aug 2007 15:18:20 +0000 (16:18 +0100)
committerLen Brown <len.brown@intel.com>
Sat, 25 Aug 2007 05:38:40 +0000 (01:38 -0400)
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: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/namespace/nsxfeval.c
include/acpi/acpixf.h
include/acpi/acstruct.h

index ab65b2c2560ec5901c743245d73716683093b070..f39fbc6b9237687a3ffd0c1b387499bb6ad0714c 100644 (file)
@@ -540,7 +540,7 @@ acpi_ns_get_device_callback(acpi_handle obj_handle,
  ******************************************************************************/
 
 acpi_status
-acpi_get_devices(char *HID,
+acpi_get_devices(const char *HID,
                 acpi_walk_callback user_function,
                 void *context, void **return_value)
 {
index b5cca5daa348802e25426990f9e290db9d3621f9..3d7ab9e0c9fe2e93dacda51f409b65cbe5a0bb3f 100644 (file)
@@ -130,7 +130,7 @@ acpi_walk_namespace(acpi_object_type type,
                    void *context, void **return_value);
 
 acpi_status
-acpi_get_devices(char *HID,
+acpi_get_devices(const char *HID,
                 acpi_walk_callback user_function,
                 void *context, void **return_value);
 
index aeb4498e5e06047b52ea521e2a8ad69cb3428630..88482655407f04fce85d9a35baa3ad8e1b17b624 100644 (file)
@@ -146,7 +146,7 @@ struct acpi_init_walk_info {
 struct acpi_get_devices_info {
        acpi_walk_callback user_function;
        void *context;
-       char *hid;
+       const char *hid;
 };
 
 union acpi_aml_operands {