efivars: Stop passing a struct argument to efivar_validate()
authorMatt Fleming <matt.fleming@intel.com>
Mon, 17 Mar 2014 10:57:00 +0000 (10:57 +0000)
committerMark Brown <broonie@linaro.org>
Wed, 23 Jul 2014 20:06:47 +0000 (21:06 +0100)
commitea86e0288e02368ad890c582b22c18918cf36440
tree8240d321866f5b70c674056654e81871bed95212
parentf5f59ce673a0071e6bad70a5108d49191f60f812
efivars: Stop passing a struct argument to efivar_validate()

In preparation for compat support, we can't assume that user variable
object is represented by a 'struct efi_variable'. Convert the validation
functions to take the variable name as an argument, which is the only
piece of the struct that was ever used anyway.

Cc: Mike Waychison <mikew@google.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
(cherry picked from commit a5d92ad32dad94fd8f3f61778561d532bb3a2f77)
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/firmware/efi/efivars.c
drivers/firmware/efi/vars.c
include/linux/efi.h