diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2021-10-10 17:07:35 +0200 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2021-10-18 23:59:40 +0200 |
commit | d4b66ced0fa9591114a9925cce0783ae3979ad92 (patch) | |
tree | 95e49f5144ec3cb5d44af4b7eba372a4f7977988 | |
parent | 7bc1bb697dbf3df423f5622f4d532133c58fbcc9 (diff) | |
download | backports-d4b66ced0fa9591114a9925cce0783ae3979ad92.tar.gz |
headers: Add FW_ACTION_NOUEVENT and FW_ACTION_UEVENT
FW_ACTION_NOHOTPLUG and FW_ACTION_HOTPLUG were renamed to
FW_ACTION_NOUEVENT and FW_ACTION_UEVENT in kernel 5.14.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
-rw-r--r-- | backport/backport-include/linux/firmware.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/backport/backport-include/linux/firmware.h b/backport/backport-include/linux/firmware.h index 7d41637c..c12ce98c 100644 --- a/backport/backport-include/linux/firmware.h +++ b/backport/backport-include/linux/firmware.h @@ -14,4 +14,12 @@ static inline int firmware_request_cache(struct device *device, const char *name } #endif +#ifndef FW_ACTION_NOUEVENT +#define FW_ACTION_NOUEVENT FW_ACTION_NOHOTPLUG +#endif + +#ifndef FW_ACTION_UEVENT +#define FW_ACTION_UEVENT FW_ACTION_HOTPLUG +#endif + #endif /* __BACKPORT_LINUX_FIRMWARE_H */ |