Message ID | 20210917182226.3532898-9-mcgrof@kernel.org (mailing list archive) |
---|---|
State | Not Applicable |
Delegated to: | Johannes Berg |
Headers | show |
Series | firmware_loader: built-in API and make x86 use it | expand |
diff --git a/drivers/base/firmware_loader/builtin/main.c b/drivers/base/firmware_loader/builtin/main.c index 2af0e58f3f9f..0c78adb39110 100644 --- a/drivers/base/firmware_loader/builtin/main.c +++ b/drivers/base/firmware_loader/builtin/main.c @@ -4,6 +4,12 @@ #include <linux/firmware.h> #include "../firmware.h" +struct builtin_fw { + char *name; + void *data; + unsigned long size; +}; + extern struct builtin_fw __start_builtin_fw[]; extern struct builtin_fw __end_builtin_fw[]; diff --git a/include/linux/firmware.h b/include/linux/firmware.h index 9f21a0db715f..7a948739decd 100644 --- a/include/linux/firmware.h +++ b/include/linux/firmware.h @@ -21,12 +21,6 @@ struct module; struct device; #ifdef CONFIG_FW_LOADER_BUILTIN -struct builtin_fw { - char *name; - void *data; - unsigned long size; -}; - bool firmware_request_builtin(struct firmware *fw, const char *name); #else static inline bool firmware_request_builtin(struct firmware *fw,