mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-17 16:46:52 +07:00
1a03964dec
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>
12 lines
263 B
C
12 lines
263 B
C
#ifndef __QCOM_SMEM_H__
|
|
#define __QCOM_SMEM_H__
|
|
|
|
#define QCOM_SMEM_HOST_ANY -1
|
|
|
|
int qcom_smem_alloc(unsigned host, unsigned item, size_t size);
|
|
void *qcom_smem_get(unsigned host, unsigned item, size_t *size);
|
|
|
|
int qcom_smem_get_free_space(unsigned host);
|
|
|
|
#endif
|