summaryrefslogtreecommitdiffstats
path: root/drivers/base
diff options
context:
space:
mode:
authorLuis Chamberlain <mcgrof@kernel.org>2021-10-21 17:58:37 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-10-22 14:13:53 +0200
commite2e2c0f20f321b0ec36e8bde467259c0adf1fecb (patch)
tree92380a9abba66e271020290cffd172f9a9bb3266 /drivers/base
parentx86/microcode: Use the firmware_loader built-in API (diff)
downloadlinux-e2e2c0f20f321b0ec36e8bde467259c0adf1fecb.tar.xz
linux-e2e2c0f20f321b0ec36e8bde467259c0adf1fecb.zip
firmware_loader: move struct builtin_fw to the only place used
Now that x86 doesn't abuse picking at internals to the firmware loader move out the built-in firmware struct to its only user. Reviewed-by: Borislav Petkov <bp@suse.de> Signed-off-by: Luis Chamberlain <mcgrof@kernel.org> Link: https://lore.kernel.org/r/20211021155843.1969401-5-mcgrof@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base')
-rw-r--r--drivers/base/firmware_loader/builtin/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/base/firmware_loader/builtin/main.c b/drivers/base/firmware_loader/builtin/main.c
index d85626b2fdf5..a065c3150897 100644
--- a/drivers/base/firmware_loader/builtin/main.c
+++ b/drivers/base/firmware_loader/builtin/main.c
@@ -7,6 +7,12 @@
/* Only if FW_LOADER=y */
#ifdef CONFIG_FW_LOADER
+struct builtin_fw {
+ char *name;
+ void *data;
+ unsigned long size;
+};
+
extern struct builtin_fw __start_builtin_fw[];
extern struct builtin_fw __end_builtin_fw[];