Home
last modified time | relevance | path

Searched hist:"1 a03964dec3cecb6382d172b9dfe318735c2cad7" (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/include/linux/soc/qcom/
H A Dsmem.hdiff 1a03964dec3cecb6382d172b9dfe318735c2cad7 Wed Sep 02 17:46:44 CDT 2015 Stephen Boyd <sboyd@codeaurora.org> 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>
/openbmc/linux/drivers/soc/qcom/
H A Dsmem.cdiff 1a03964dec3cecb6382d172b9dfe318735c2cad7 Wed Sep 02 17:46:44 CDT 2015 Stephen Boyd <sboyd@codeaurora.org> 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>