]> asedeno.scripts.mit.edu Git - linux.git/commit
firmware: add helper to copy built-in data to pre-alloc buffer
authorLuis R. Rodriguez <mcgrof@kernel.org>
Mon, 20 Nov 2017 18:23:56 +0000 (10:23 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Nov 2017 10:18:43 +0000 (11:18 +0100)
commit5711ae6d3054e13a95858da6df6d142bec90d832
tree79b812439129830ac2a8802bf1615e18a8f5a54b
parent942e743b73d0effc65895e4361b04534e24106cb
firmware: add helper to copy built-in data to pre-alloc buffer

This makes it clearer that the parameters passed are only used for
the preallocated buffer option, ie, when a caller uses:

request_firmware_into_buf()

Otherwise this code won't run. We flip the logic just so the actual
prellocated buf code is not indented.

Signed-off-by: Luis R. Rodriguez <mcgrof@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/firmware_class.c