soc: qcom: smem: introduce qcom_smem_partition_header()
authorAlex Elder <elder@linaro.org>
Tue, 26 Jun 2018 00:58:51 +0000 (19:58 -0500)
committerAndy Gross <andy.gross@linaro.org>
Thu, 13 Sep 2018 21:57:01 +0000 (16:57 -0500)
commitada79289735fea37e755bbefc4403c989e66f4b1
treedb1c4594b9a4f782d84a51eefa9ff2d2649fa761
parentabc006b7a6eaf598c3987e5ae87deb7cd8221145
soc: qcom: smem: introduce qcom_smem_partition_header()

Create a new function qcom_smem_partition_header() to encapsulate
validating locating a partition header and validating information
found within it.  This will be built up over a few commits to make
it more obvious how the common function is replacing duplicated code
elsewhere.  Initially it just verifies the header has the right
magic number.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
drivers/soc/qcom/smem.c