]> www.infradead.org Git - users/hch/misc.git/commitdiff
firmware: move firmware loader into its own directory
authorLuis R. Rodriguez <mcgrof@kernel.org>
Sat, 10 Mar 2018 14:14:50 +0000 (06:14 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Mar 2018 08:28:46 +0000 (09:28 +0100)
This will make it much easier to manage as we manage to
keep trimming componnents down into their own files to more
easily manage and maintain this codebase.

Suggested-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Luis R. Rodriguez <mcgrof@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
MAINTAINERS
drivers/base/Makefile
drivers/base/firmware_loader/Makefile [new file with mode: 0644]
drivers/base/firmware_loader/fallback.c [moved from drivers/base/firmware_fallback.c with 99% similarity]
drivers/base/firmware_loader/fallback.h [moved from drivers/base/firmware_fallback.h with 100% similarity]
drivers/base/firmware_loader/fallback_table.c [moved from drivers/base/firmware_fallback_table.c with 90% similarity]
drivers/base/firmware_loader/firmware.h [moved from drivers/base/firmware_loader.h with 100% similarity]
drivers/base/firmware_loader/main.c [moved from drivers/base/firmware_loader.c with 99% similarity]

index 4623caf8d72d8591b87a300b35b5ad0aca10f6a5..44c6ea94d727186d1cd3e834ec23c7ca38fbff3c 100644 (file)
@@ -5552,7 +5552,7 @@ M:        Luis R. Rodriguez <mcgrof@kernel.org>
 L:     linux-kernel@vger.kernel.org
 S:     Maintained
 F:     Documentation/firmware_class/
-F:     drivers/base/firmware*.c
+F:     drivers/base/firmware_loader/
 F:     include/linux/firmware.h
 
 FLASH ADAPTER DRIVER (IBM Flash Adapter 900GB Full Height PCI Flash Card)
index b946a408256d1d2d4b57919b9958ae4239da75bb..b9539abec675feff2f83c7e091c3d388b92584bb 100644 (file)
@@ -5,17 +5,14 @@ obj-y                 := component.o core.o bus.o dd.o syscore.o \
                           driver.o class.o platform.o \
                           cpu.o firmware.o init.o map.o devres.o \
                           attribute_container.o transport_class.o \
-                          topology.o container.o property.o cacheinfo.o \
-                          firmware_fallback_table.o
+                          topology.o container.o property.o cacheinfo.o
 obj-$(CONFIG_DEVTMPFS) += devtmpfs.o
 obj-$(CONFIG_DMA_CMA) += dma-contiguous.o
 obj-y                  += power/
 obj-$(CONFIG_HAS_DMA)  += dma-mapping.o
 obj-$(CONFIG_HAVE_GENERIC_DMA_COHERENT) += dma-coherent.o
 obj-$(CONFIG_ISA_BUS_API)      += isa.o
-obj-$(CONFIG_FW_LOADER)        += firmware_class.o
-firmware_class-objs := firmware_loader.o
-firmware_class-$(CONFIG_FW_LOADER_USER_HELPER) += firmware_fallback.o
+obj-y                          += firmware_loader/
 obj-$(CONFIG_NUMA)     += node.o
 obj-$(CONFIG_MEMORY_HOTPLUG_SPARSE) += memory.o
 ifeq ($(CONFIG_SYSFS),y)
diff --git a/drivers/base/firmware_loader/Makefile b/drivers/base/firmware_loader/Makefile
new file mode 100644 (file)
index 0000000..a97eeb0
--- /dev/null
@@ -0,0 +1,7 @@
+# SPDX-License-Identifier: GPL-2.0
+# Makefile for the Linux firmware loader
+
+obj-y                  := fallback_table.o
+obj-$(CONFIG_FW_LOADER)        += firmware_class.o
+firmware_class-objs := main.o
+firmware_class-$(CONFIG_FW_LOADER_USER_HELPER) += fallback.o
similarity index 99%
rename from drivers/base/firmware_fallback.c
rename to drivers/base/firmware_loader/fallback.c
index 47690207e0ee9a9b2f7fdf8f12e4b758c4ce7535..9b65837256d6fc58e75f8a80fd5954f6b1df0baf 100644 (file)
@@ -8,8 +8,8 @@
 #include <linux/highmem.h>
 #include <linux/umh.h>
 
-#include "firmware_fallback.h"
-#include "firmware_loader.h"
+#include "fallback.h"
+#include "firmware.h"
 
 /*
  * firmware fallback mechanism
similarity index 90%
rename from drivers/base/firmware_fallback_table.c
rename to drivers/base/firmware_loader/fallback_table.c
index 53cc4e4925206d50b07ec0501f6a128e62bc8a91..981419044c7ecf2e3c841f50f850bc103419dcbd 100644 (file)
@@ -9,8 +9,8 @@
 #include <linux/umh.h>
 #include <linux/sysctl.h>
 
-#include "firmware_fallback.h"
-#include "firmware_loader.h"
+#include "fallback.h"
+#include "firmware.h"
 
 /*
  * firmware fallback configuration table
similarity index 99%
rename from drivers/base/firmware_loader.c
rename to drivers/base/firmware_loader/main.c
index 21dd31ef08ae3053989b61114f74d1d9ed9947a7..c8966c84bd4415fd0fe76d2ce63541160dea1c4c 100644 (file)
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0
 /*
- * firmware_class.c - Multi purpose firmware loading support
+ * main.c - Multi purpose firmware loading support
  *
  * Copyright (c) 2003 Manuel Estrada Sainz
  *
@@ -36,9 +36,9 @@
 
 #include <generated/utsrelease.h>
 
-#include "base.h"
-#include "firmware_loader.h"
-#include "firmware_fallback.h"
+#include "../base.h"
+#include "firmware.h"
+#include "fallback.h"
 
 MODULE_AUTHOR("Manuel Estrada Sainz");
 MODULE_DESCRIPTION("Multi purpose firmware loading support");