soc: qcom: Make qcom_smem_get() return a pointer
authorStephen Boyd <sboyd@codeaurora.org>
Wed, 2 Sep 2015 22:46:44 +0000 (15:46 -0700)
committerAndy Gross <agross@codeaurora.org>
Wed, 14 Oct 2015 19:51:20 +0000 (14:51 -0500)
commit1a03964dec3cecb6382d172b9dfe318735c2cad7
treec70613e4c997e4c77dda6e488d4036182b79fd6a
parent7d0c8beea6b8d158d9a628b798dfc1638a7a8ce0
soc: qcom: Make qcom_smem_get() return a pointer

Passing a void ** almost always requires a cast at the call site.
Instead of littering the code with casts every time this function
is called, have qcom_smem_get() return a void pointer to the
location of the smem item. This frees the caller from having to
cast the pointer.

Cc: Bjorn Andersson <bjorn.andersson@sonymobile.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
Signed-off-by: Andy Gross <agross@codeaurora.org>
drivers/soc/qcom/smd.c
drivers/soc/qcom/smem.c
include/linux/soc/qcom/smem.h