[PATCH 58/75] header: Add empty request_partial_firmware_into_buf()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This adds an empty implememntation.

Signed-off-by: Hauke Mehrtens <hauke@xxxxxxxxxx>
---
 backport/backport-include/linux/firmware.h | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/backport/backport-include/linux/firmware.h b/backport/backport-include/linux/firmware.h
index c12ce98c..9bfe6e9d 100644
--- a/backport/backport-include/linux/firmware.h
+++ b/backport/backport-include/linux/firmware.h
@@ -22,4 +22,16 @@ static inline int firmware_request_cache(struct device *device, const char *name
 #define FW_ACTION_UEVENT FW_ACTION_HOTPLUG
 #endif
 
+#if LINUX_VERSION_IS_LESS(5,10,0)
+#define request_partial_firmware_into_buf LINUX_BACKPORT(request_partial_firmware_into_buf)
+static inline int request_partial_firmware_into_buf
+					(const struct firmware **firmware_p,
+					 const char *name,
+					 struct device *device,
+					 void *buf, size_t size, size_t offset)
+{
+	return -ENOTSUPP;
+}
+#endif
+
 #endif /* __BACKPORT_LINUX_FIRMWARE_H */
-- 
2.45.2





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux