efi: Fix types in EFI calls to match EFI function definitions.
authorRoy Franz <roy.franz@linaro.org>
Sun, 22 Sep 2013 22:45:41 +0000 (15:45 -0700)
committerMatt Fleming <matt.fleming@intel.com>
Wed, 25 Sep 2013 11:34:44 +0000 (12:34 +0100)
commit6a5fe770d32811ffacefaa2a430cc067ecc7336c
treedc4d4bdbae969362a4549f6761f73fbab84be2cb
parent36f8961c963683ac12282e422dfc3db806ee0c7e
efi: Fix types in EFI calls to match EFI function definitions.

EFI calls can made directly on ARM, so the function pointers
are directly invoked.  This allows types to be checked at
compile time, so here we ensure that the parameters match
the function signature. The wrappers used by x86 prevent
any type checking.
Correct the type of chunksize to be based on native
width as specified by the EFI_FILE_PROTOCOL read()
function.

Signed-off-by: Roy Franz <roy.franz@linaro.org>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
drivers/firmware/efi/efi-stub-helper.c