efivars: String functions
authorMike Waychison <mikew@google.com>
Thu, 21 Jul 2011 20:57:57 +0000 (16:57 -0400)
committerTony Luck <tony.luck@intel.com>
Fri, 22 Jul 2011 23:15:21 +0000 (16:15 -0700)
commita2940908391f3cee72e38769b30e829b22742b5b
tree30dc4ca2eae129f2612e74b60ff125b75af45eae
parent5ee9c198a4208d7760275d48e4c4f6c89dcd2ef0
efivars: String functions

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>
drivers/firmware/efivars.c