diff options
Diffstat (limited to 'backport-include/linux/firmware.h')
-rw-r--r-- | backport-include/linux/firmware.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/backport-include/linux/firmware.h b/backport-include/linux/firmware.h new file mode 100644 index 0000000..b5bc16b --- /dev/null +++ b/backport-include/linux/firmware.h @@ -0,0 +1,20 @@ +#ifndef __BACKPORT_LINUX_FIRMWARE_H +#define __BACKPORT_LINUX_FIRMWARE_H +#include_next <linux/firmware.h> + +#if LINUX_VERSION_IS_LESS(3,14,0) +#define request_firmware_direct(fw, name, device) request_firmware(fw, name, device) +#endif +#if LINUX_VERSION_IS_LESS(4,18,0) +#define firmware_request_nowarn(fw, name, device) request_firmware(fw, name, device) +#endif + +#if LINUX_VERSION_IS_LESS(4,17,0) +#define firmware_request_cache LINUX_BACKPORT(firmware_request_cache) +static inline int firmware_request_cache(struct device *device, const char *name) +{ + return 0; +} +#endif + +#endif /* __BACKPORT_LINUX_FIRMWARE_H */ |