firmware_loader: split built-in firmware call
authorLuis Chamberlain <mcgrof@kernel.org>
Fri, 17 Sep 2021 18:22:14 +0000 (11:22 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Oct 2021 14:26:37 +0000 (16:26 +0200)
commit7c4fd90741b724b199089869262862542a8f026b
tree5ff4b8493d576275e0caef3e9766c6abe9800e7e
parentf7a07f7b96033df7709042ff38e998720a3f7119
firmware_loader: split built-in firmware call

There are two ways the firmware_loader can use the built-in
firmware: with or without the pre-allocated buffer. We already
have one explicit use case for each of these, and so split them
up so that it is clear what the intention is on the caller side.

This also paves the way so that eventually other callers outside
of the firmware loader can uses these if and when needed.

While at it, adopt the firmware prefix for the routine names.

Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Link: https://lore.kernel.org/r/20210917182226.3532898-3-mcgrof@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/firmware_loader/main.c