mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
firmware: replace HOTPLUG with UEVENT in FW_ACTION defines
With commit 312c004d36
("[PATCH] driver core: replace "hotplug" by
"uevent"") already in the tree over a decade, update the name of
FW_ACTION defines to follow semantics, and reflect what the defines are
really meant for, i.e. whether or not generate user space event.
Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Link: https://lore.kernel.org/r/20210425020024.28057-1-shawn.guo@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
6efb943b86
commit
0733d83905
12 changed files with 19 additions and 19 deletions
|
@ -260,8 +260,8 @@ static ssize_t config_show(struct device *dev,
|
|||
len += scnprintf(buf + len, PAGE_SIZE - len,
|
||||
"send_uevent:\t\t%s\n",
|
||||
test_fw_config->send_uevent ?
|
||||
"FW_ACTION_HOTPLUG" :
|
||||
"FW_ACTION_NOHOTPLUG");
|
||||
"FW_ACTION_UEVENT" :
|
||||
"FW_ACTION_NOUEVENT");
|
||||
len += scnprintf(buf + len, PAGE_SIZE - len,
|
||||
"into_buf:\t\t%s\n",
|
||||
test_fw_config->into_buf ? "true" : "false");
|
||||
|
@ -729,7 +729,7 @@ static ssize_t trigger_custom_fallback_store(struct device *dev,
|
|||
mutex_lock(&test_fw_mutex);
|
||||
release_firmware(test_firmware);
|
||||
test_firmware = NULL;
|
||||
rc = request_firmware_nowait(THIS_MODULE, FW_ACTION_NOHOTPLUG, name,
|
||||
rc = request_firmware_nowait(THIS_MODULE, FW_ACTION_NOUEVENT, name,
|
||||
dev, GFP_KERNEL, NULL,
|
||||
trigger_async_request_cb);
|
||||
if (rc) {
|
||||
|
@ -938,8 +938,8 @@ ssize_t trigger_batched_requests_async_store(struct device *dev,
|
|||
pr_info("batched loading '%s' custom fallback mechanism %u times\n",
|
||||
test_fw_config->name, test_fw_config->num_requests);
|
||||
|
||||
send_uevent = test_fw_config->send_uevent ? FW_ACTION_HOTPLUG :
|
||||
FW_ACTION_NOHOTPLUG;
|
||||
send_uevent = test_fw_config->send_uevent ? FW_ACTION_UEVENT :
|
||||
FW_ACTION_NOUEVENT;
|
||||
|
||||
for (i = 0; i < test_fw_config->num_requests; i++) {
|
||||
req = &test_fw_config->reqs[i];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue