linux-sg2042/include/soc/qcom
Stephen Boyd ed3cafa79e soc: qcom: cmd-db: Stop memcpy()ing in cmd_db_read_aux_data()
Let's change the function signature to return the pointer to memory or
an error pointer on failure, and take an argument that lets us return
the size of the aux data read. This way we can remove the
cmd_db_read_aux_data_len() API entirely and also get rid of the memcpy
operation from cmd_db to the caller. Updating the only user of this code
shows that making this change allows us to remove a function and put the
lookup where the user is.

Cc: Mahesh Sivasubramanian <msivasub@codeaurora.org>
Cc: Lina Iyer <ilina@codeaurora.org>
Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
Cc: Evan Green <evgreen@chromium.org>
Cc: Jordan Crouse <jcrouse@codeaurora.org>
Cc: Rob Clark <robdclark@gmail.com>
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
2018-11-14 10:06:24 -08:00
..
cmd-db.h soc: qcom: cmd-db: Stop memcpy()ing in cmd_db_read_aux_data() 2018-11-14 10:06:24 -08:00
rpmh.h drivers: qcom: rpmh: add support for batch RPMH request 2018-07-21 13:33:36 -05:00
tcs.h drivers: qcom: rpmh-rsc: add RPMH controller for QCOM SoCs 2018-07-21 13:32:06 -05:00