summaryrefslogtreecommitdiff
path: root/drivers/acpi/acpica/utstring.c
diff options
context:
space:
mode:
authorBob Moore <robert.moore@intel.com>2013-06-08 04:59:44 +0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-06-16 03:00:46 +0400
commitde8e7db74a98124406b72a528f4c79766e08b410 (patch)
tree83bde8129c46e78741155c153ae7fe68e36231bf /drivers/acpi/acpica/utstring.c
parent7cec7048fe22e3e92389da2cd67098f6c4284e7f (diff)
downloadlinux-de8e7db74a98124406b72a528f4c79766e08b410.tar.xz
ACPICA: Update interface to acpi_ut_valid_acpi_name()
Clean up the interface by making the input argument a char * string instead of a UINT32 name. This is easier to use for all callers and eliminates casting to *(UINT32*) Signed-off-by: Bob Moore <robert.moore@intel.com> Signed-off-by: Lv Zheng <lv.zheng@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/acpica/utstring.c')
-rw-r--r--drivers/acpi/acpica/utstring.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/acpi/acpica/utstring.c b/drivers/acpi/acpica/utstring.c
index 31a06a17e29d..c53759b76a3f 100644
--- a/drivers/acpi/acpica/utstring.c
+++ b/drivers/acpi/acpica/utstring.c
@@ -462,7 +462,8 @@ u8 acpi_ut_valid_acpi_char(char character, u32 position)
*
* FUNCTION: acpi_ut_valid_acpi_name
*
- * PARAMETERS: name - The name to be examined
+ * PARAMETERS: name - The name to be examined. Does not have to
+ * be NULL terminated string.
*
* RETURN: TRUE if the name is valid, FALSE otherwise
*
@@ -473,15 +474,14 @@ u8 acpi_ut_valid_acpi_char(char character, u32 position)
*
******************************************************************************/
-u8 acpi_ut_valid_acpi_name(u32 name)
+u8 acpi_ut_valid_acpi_name(char *name)
{
u32 i;
ACPI_FUNCTION_ENTRY();
for (i = 0; i < ACPI_NAME_SIZE; i++) {
- if (!acpi_ut_valid_acpi_char
- ((ACPI_CAST_PTR(char, &name))[i], i)) {
+ if (!acpi_ut_valid_acpi_char(name[i], i)) {
return (FALSE);
}
}