Add missing const to the path argument of get_handle().

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41398 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Lotz 2011-05-09 13:05:28 +00:00
parent f65eaf15ad
commit 2800b06462
3 changed files with 6 additions and 5 deletions

View File

@ -160,7 +160,7 @@ typedef void (*acpi_notify_handler)(acpi_handle device, uint32 value,
struct acpi_module_info {
module_info info;
status_t (*get_handle)(acpi_handle parent, char *pathname,
status_t (*get_handle)(acpi_handle parent, const char *pathname,
acpi_handle *retHandle);
/* Global Lock */

View File

@ -262,9 +262,9 @@ acpi_std_ops(int32 op,...)
status_t
get_handle(acpi_handle parent, char *pathname, acpi_handle *retHandle)
get_handle(acpi_handle parent, const char *pathname, acpi_handle *retHandle)
{
return AcpiGetHandle(parent, pathname, retHandle) == AE_OK
return AcpiGetHandle(parent, (ACPI_STRING)pathname, retHandle) == AE_OK
? B_OK : B_ERROR;
}

View File

@ -43,7 +43,7 @@ typedef struct acpi_device_cookie {
typedef struct acpi_root_info {
driver_module_info info;
status_t (*get_handle)(acpi_handle parent, char *pathname,
status_t (*get_handle)(acpi_handle parent, const char *pathname,
acpi_handle *retHandle);
/* Global Lock */
@ -147,7 +147,8 @@ extern struct device_module_info embedded_controller_device_module;
extern acpi_device_module_info gACPIDeviceModule;
status_t get_handle(acpi_handle parent, char* pathname, acpi_handle* retHandle);
status_t get_handle(acpi_handle parent, const char* pathname,
acpi_handle* retHandle);
status_t acquire_global_lock(uint16 timeout, uint32* handle);
status_t release_global_lock(uint32 handle);