OSDN Git Service

efivars: String functions
authorMike Waychison <mikew@google.com>
Thu, 21 Jul 2011 20:57:57 +0000 (16:57 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 May 2012 15:56:38 +0000 (08:56 -0700)
commit9f0c771dfaece0bca44cead53ea6df64e099ae10
treeebb3ef1a1108498e3056a381a52da4a1028b1bb0
parent34dea1cae3e37fe34ddf7b0f7b581aebcb70db97
efivars: String functions

commit a2940908391f3cee72e38769b30e829b22742b5b upstream.

Fix the string functions in the efivars driver to be called utf16_*
instead of utf8_* as the encoding is utf16, not utf8.

As well, rename utf16_strlen to utf16_strnlen as it takes a maxlength
argument and the name should be consistent with the standard C function
names.  utf16_strlen is still provided for convenience in a subsequent
patch.

Signed-off-by: Mike Waychison <mikew@google.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/firmware/efivars.c