]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
firmware: move loading timeout under struct firmware_fallback_config
authorLuis R. Rodriguez <mcgrof@kernel.org>
Sat, 10 Mar 2018 14:14:48 +0000 (06:14 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Mar 2018 08:28:46 +0000 (09:28 +0100)
commite05cb73f83918b9bde2063de08467f2261d0f5bb
tree65a79cec2f39d7d4983f2578e057fbbc901148d7
parent5d9566b144fdbbedf64dbf0907d2933fbcfb6872
firmware: move loading timeout under struct firmware_fallback_config

The timeout is a fallback construct, so we can just stuff the
timeout configuration under struct firmware_fallback_config.

While at it, add a few helpers which vets the use of getting or
setting the timeout as an int. The main use of the timeout is
to set a timeout for completion, and that is used as an unsigned
long. There a few cases however where it makes sense to get or
set the timeout as an int, the helpers annotate these use cases
have been properly vetted for.

Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Luis R. Rodriguez <mcgrof@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/firmware_loader.c