efivars: parameterize efivars
commit4142ef146aee440731de956d9f9f3170d5a238ae
authorMike Waychison <mikew@google.com>
Sat, 12 Mar 2011 01:43:11 +0000 (11 17:43 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 14 Mar 2011 15:40:50 +0000 (14 08:40 -0700)
tree32bcb80883c10a7088806fda17bbf1730a4d781e
parentd502fbb0dc4d4babe5fb330257fa49a83fbf86a6
efivars: parameterize efivars

Now that we all global variable state is encapsulated by struct efivars,
parameterize all functions to the efivars local to the control flow rather
than at file scope.  We do this by removing the variable "efivars" at file
scope and move its storage down to the end of the file.

Variables get at efivars by storing the efivars pointer within each
efivar_entry.  The "new_var" and "del_var" binary attribute files get at
the efivars through the private pointer.

Signed-off-by: Mike Waychison <mikew@google.com>
Cc: Matt Domsch <Matt_Domsch@dell.com>,
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/firmware/efivars.c