summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@codeaurora.org>2015-09-03 00:46:44 +0200
committerAndy Gross <agross@codeaurora.org>2015-10-14 21:51:20 +0200
commit1a03964dec3cecb6382d172b9dfe318735c2cad7 (patch)
treec70613e4c997e4c77dda6e488d4036182b79fd6a /include
parentsoc: qcom: Reorder SMEM/SMD configs (diff)
downloadlinux-1a03964dec3cecb6382d172b9dfe318735c2cad7.tar.xz
linux-1a03964dec3cecb6382d172b9dfe318735c2cad7.zip
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>
Diffstat (limited to 'include')
-rw-r--r--include/linux/soc/qcom/smem.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/soc/qcom/smem.h b/include/linux/soc/qcom/smem.h
index bc9630d3aced..785e196ee2ca 100644
--- a/include/linux/soc/qcom/smem.h
+++ b/include/linux/soc/qcom/smem.h
@@ -4,7 +4,7 @@
#define QCOM_SMEM_HOST_ANY -1
int qcom_smem_alloc(unsigned host, unsigned item, size_t size);
-int qcom_smem_get(unsigned host, unsigned item, void **ptr, size_t *size);
+void *qcom_smem_get(unsigned host, unsigned item, size_t *size);
int qcom_smem_get_free_space(unsigned host);