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)
committerMark Brown <broonie@linaro.org>
Mon, 16 Jun 2014 20:18:27 +0000 (21:18 +0100)
commitd16b1f8461c33f7ca9d047973756566d39eb30a9
tree91f6ed9608d58582f85e156d61a4c7d13e669960
parent1e1496d9d1e4b0460a714d618d971baa2d091ef1
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>
(cherry picked from commit 6a5fe770d32811ffacefaa2a430cc067ecc7336c)
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/firmware/efi/efi-stub-helper.c