diff mbox series

[27/47] headers: Add FW_ACTION_NOUEVENT and FW_ACTION_UEVENT

Message ID 20211019214320.2035704-28-hauke@hauke-m.de (mailing list archive)
State New, archived
Headers show
Series backports: Update to kernel 5.15-rc6 | expand

Commit Message

Hauke Mehrtens Oct. 19, 2021, 9:43 p.m. UTC
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>
---
 backport/backport-include/linux/firmware.h | 8 ++++++++
 1 file changed, 8 insertions(+)
diff mbox series

Patch

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 */