soc: qcom: mdt_loader: Use request_firmware_into_buf()
authorBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 26 Jun 2017 20:36:59 +0000 (13:36 -0700)
committerAndy Gross <andy.gross@linaro.org>
Tue, 8 Aug 2017 22:41:23 +0000 (17:41 -0500)
commit445c2410a449ae29c0ec0bb9cee8f38078c4a2f1
tree9b1aa1e785e328ada927ae46aca62b29319aa508
parent2a464815d3262e441a5cff7cbece69c0b76b14d6
soc: qcom: mdt_loader: Use request_firmware_into_buf()

By switching to the request_firmware_into_buf() we load the segment data
straight into the preallocated buffers, reducing the need for allocating
scratch buffers for these. In particular the modem firmware consists of
multiple segments in the range 5-15MB, making this worth while.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
drivers/soc/qcom/mdt_loader.c