aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base/firmware_loader/fallback.c
diff options
context:
space:
mode:
authorLuis R. Rodriguez <mcgrof@kernel.org>2018-03-10 09:14:55 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-03-20 04:28:47 -0400
commit60fa74263cbeae1704908c403aba2bfd62c798e8 (patch)
tree35ef39a85de78e6e0c7014f7e0c03daafc689172 /drivers/base/firmware_loader/fallback.c
parentb3cf21fae1fe0b3a3e8ada0a60d3fb6217ebce5b (diff)
rename: _request_firmware_load() fw_load_sysfs_fallback()
This reflects much clearer what is being done. While at it, kdoc'ify it. Signed-off-by: Luis R. Rodriguez <mcgrof@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base/firmware_loader/fallback.c')
-rw-r--r--drivers/base/firmware_loader/fallback.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/drivers/base/firmware_loader/fallback.c b/drivers/base/firmware_loader/fallback.c
index d6838e7ec00c..0a8ec7fec585 100644
--- a/drivers/base/firmware_loader/fallback.c
+++ b/drivers/base/firmware_loader/fallback.c
@@ -535,8 +535,15 @@ exit:
535 return fw_sysfs; 535 return fw_sysfs;
536} 536}
537 537
538/* load a firmware via user helper */ 538/**
539static int _request_firmware_load(struct fw_sysfs *fw_sysfs, 539 * fw_load_sysfs_fallback - load a firmware via the syfs fallback mechanism
540 * @fw_sysfs: firmware syfs information for the firmware to load
541 * @opt_flags: flags of options, FW_OPT_*
542 * @timeout: timeout to wait for the load
543 *
544 * In charge of constructing a sysfs fallback interface for firmware loading.
545 **/
546static int fw_load_sysfs_fallback(struct fw_sysfs *fw_sysfs,
540 unsigned int opt_flags, long timeout) 547 unsigned int opt_flags, long timeout)
541{ 548{
542 int retval = 0; 549 int retval = 0;
@@ -621,7 +628,7 @@ static int fw_load_from_user_helper(struct firmware *firmware,
621 } 628 }
622 629
623 fw_sysfs->fw_priv = firmware->priv; 630 fw_sysfs->fw_priv = firmware->priv;
624 ret = _request_firmware_load(fw_sysfs, opt_flags, timeout); 631 ret = fw_load_sysfs_fallback(fw_sysfs, opt_flags, timeout);
625 632
626 if (!ret) 633 if (!ret)
627 ret = assign_fw(firmware, device, opt_flags); 634 ret = assign_fw(firmware, device, opt_flags);