aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base/firmware_loader/fallback.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2018-06-05 19:29:19 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2018-06-05 19:29:19 -0400
commitec064d3c6b40697fd72f4b1eeabbf293b7947a04 (patch)
tree1c7dcd0105d2cc9da3861452da9708ca03f2ece6 /drivers/base/firmware_loader/fallback.h
parentabf7dba7c4f77d781f6df50fefb19a64c5dc331f (diff)
parent8c97a46af04b4f7c0a0dded031fef1806872e648 (diff)
Merge tag 'driver-core-4.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core
Pull driver core updates from Greg KH: "Here is the driver core patchset for 4.18-rc1. The large chunk of these are firmware core documentation and api updates. Nothing major there, just better descriptions for others to be able to understand the firmware code better. There's also a user for a new firmware api call. Other than that, there are some minor updates for debugfs, kernfs, and the driver core itself. All of these have been in linux-next for a while with no reported issues" * tag 'driver-core-4.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core: (23 commits) driver core: hold dev's parent lock when needed driver-core: return EINVAL error instead of BUG_ON() driver core: add __printf verification to device_create_groups_vargs mm: memory_hotplug: use put_device() if device_register fail base: core: fix typo 'can by' to 'can be' debugfs: inode: debugfs_create_dir uses mode permission from parent debugfs: Re-use kstrtobool_from_user() Documentation: clarify firmware_class provenance and why we can't rename the module Documentation: remove stale firmware API reference Documentation: fix few typos and clarifications for the firmware loader ath10k: re-enable the firmware fallback mechanism for testmode ath10k: use firmware_request_nowarn() to load firmware firmware: add firmware_request_nowarn() - load firmware without warnings firmware_loader: make firmware_fallback_sysfs() print more useful firmware_loader: move kconfig FW_LOADER entries to its own file firmware_loader: replace ---help--- with help firmware_loader: enhance Kconfig documentation over FW_LOADER firmware_loader: document firmware_sysfs_fallback() firmware: rename fw_sysfs_fallback to firmware_fallback_sysfs() firmware: use () to terminate kernel-doc function names ...
Diffstat (limited to 'drivers/base/firmware_loader/fallback.h')
-rw-r--r--drivers/base/firmware_loader/fallback.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/drivers/base/firmware_loader/fallback.h b/drivers/base/firmware_loader/fallback.h
index f8255670a663..21063503e4ea 100644
--- a/drivers/base/firmware_loader/fallback.h
+++ b/drivers/base/firmware_loader/fallback.h
@@ -5,6 +5,8 @@
5#include <linux/firmware.h> 5#include <linux/firmware.h>
6#include <linux/device.h> 6#include <linux/device.h>
7 7
8#include "firmware.h"
9
8/** 10/**
9 * struct firmware_fallback_config - firmware fallback configuration settings 11 * struct firmware_fallback_config - firmware fallback configuration settings
10 * 12 *
@@ -29,10 +31,10 @@ struct firmware_fallback_config {
29}; 31};
30 32
31#ifdef CONFIG_FW_LOADER_USER_HELPER 33#ifdef CONFIG_FW_LOADER_USER_HELPER
32int fw_sysfs_fallback(struct firmware *fw, const char *name, 34int firmware_fallback_sysfs(struct firmware *fw, const char *name,
33 struct device *device, 35 struct device *device,
34 unsigned int opt_flags, 36 enum fw_opt opt_flags,
35 int ret); 37 int ret);
36void kill_pending_fw_fallback_reqs(bool only_kill_custom); 38void kill_pending_fw_fallback_reqs(bool only_kill_custom);
37 39
38void fw_fallback_set_cache_timeout(void); 40void fw_fallback_set_cache_timeout(void);
@@ -41,10 +43,10 @@ void fw_fallback_set_default_timeout(void);
41int register_sysfs_loader(void); 43int register_sysfs_loader(void);
42void unregister_sysfs_loader(void); 44void unregister_sysfs_loader(void);
43#else /* CONFIG_FW_LOADER_USER_HELPER */ 45#else /* CONFIG_FW_LOADER_USER_HELPER */
44static inline int fw_sysfs_fallback(struct firmware *fw, const char *name, 46static inline int firmware_fallback_sysfs(struct firmware *fw, const char *name,
45 struct device *device, 47 struct device *device,
46 unsigned int opt_flags, 48 enum fw_opt opt_flags,
47 int ret) 49 int ret)
48{ 50{
49 /* Keep carrying over the same error */ 51 /* Keep carrying over the same error */
50 return ret; 52 return ret;