efivars: Use string functions in pstore_write
authorMike Waychison <mikew@google.com>
Thu, 21 Jul 2011 20:57:59 +0000 (16:57 -0400)
committerTony Luck <tony.luck@intel.com>
Fri, 22 Jul 2011 23:15:40 +0000 (16:15 -0700)
commitc475594d838c5c872e734f693a700df8c01b39d4
treead36a818fd7294ecac5eafda9b78ebb67209a1b1
parent828aa1f00ec3508a4d813bd60d210de82929ac97
efivars: Use string functions in pstore_write

Instead of open-coding the string operations for comparing the prefix of
the variable names, use the provided utf16_* string functions.

This patch also changes the calls to efi.set_variable to
efivars->ops->set_variable so that the right function gets called in the
case of gsmi (which doesn't have a valid efi structure).

As well, make sure that we only consider variables with the right vendor
string.

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