]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
tpm: Move eventlog files to a subdirectory
authorThiebaud Weksteen <tweek@google.com>
Thu, 12 Apr 2018 10:13:48 +0000 (12:13 +0200)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Wed, 9 May 2018 11:45:46 +0000 (14:45 +0300)
Signed-off-by: Thiebaud Weksteen <tweek@google.com>
Suggested-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Tested-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
drivers/char/tpm/Makefile
drivers/char/tpm/eventlog/acpi.c [moved from drivers/char/tpm/tpm_eventlog_acpi.c with 99% similarity]
drivers/char/tpm/eventlog/efi.c [moved from drivers/char/tpm/tpm_eventlog_efi.c with 98% similarity]
drivers/char/tpm/eventlog/of.c [moved from drivers/char/tpm/tpm_eventlog_of.c with 99% similarity]
drivers/char/tpm/eventlog/tpm1.c [moved from drivers/char/tpm/tpm1_eventlog.c with 99% similarity]
drivers/char/tpm/eventlog/tpm2.c [moved from drivers/char/tpm/tpm2_eventlog.c with 99% similarity]

index acd758381c58ba37f992b8b0f7fcff48e202092c..5dcf5bd35a3d27aa8100970476f141dfe02aa60a 100644 (file)
@@ -4,11 +4,11 @@
 #
 obj-$(CONFIG_TCG_TPM) += tpm.o
 tpm-y := tpm-interface.o tpm-dev.o tpm-sysfs.o tpm-chip.o tpm2-cmd.o \
-        tpm-dev-common.o tpmrm-dev.o tpm1_eventlog.o tpm2_eventlog.o \
+        tpm-dev-common.o tpmrm-dev.o eventlog/tpm1.o eventlog/tpm2.o \
          tpm2-space.o
-tpm-$(CONFIG_ACPI) += tpm_ppi.o tpm_eventlog_acpi.o
-tpm-$(CONFIG_EFI) += tpm_eventlog_efi.o
-tpm-$(CONFIG_OF) += tpm_eventlog_of.o
+tpm-$(CONFIG_ACPI) += tpm_ppi.o eventlog/acpi.o
+tpm-$(CONFIG_EFI) += eventlog/efi.o
+tpm-$(CONFIG_OF) += eventlog/of.o
 obj-$(CONFIG_TCG_TIS_CORE) += tpm_tis_core.o
 obj-$(CONFIG_TCG_TIS) += tpm_tis.o
 obj-$(CONFIG_TCG_TIS_SPI) += tpm_tis_spi.o
similarity index 99%
rename from drivers/char/tpm/tpm_eventlog_acpi.c
rename to drivers/char/tpm/eventlog/acpi.c
index 66f19e93c216c626721925c26a2fe5542eaf8443..8476be2e95263407eee54da0f22b6d14a3b8c330 100644 (file)
@@ -27,7 +27,7 @@
 #include <linux/acpi.h>
 #include <linux/tpm_eventlog.h>
 
-#include "tpm.h"
+#include "../tpm.h"
 
 struct acpi_tcpa {
        struct acpi_table_header hdr;
similarity index 98%
rename from drivers/char/tpm/tpm_eventlog_efi.c
rename to drivers/char/tpm/eventlog/efi.c
index e3f9ffd341d23768d7f25c6d13a7f874abc096c3..e1593c5271a476fc1428ca79fc8dc22b04bde7c6 100644 (file)
@@ -14,7 +14,7 @@
 #include <linux/efi.h>
 #include <linux/tpm_eventlog.h>
 
-#include "tpm.h"
+#include "../tpm.h"
 
 /* read binary bios log from EFI configuration table */
 int tpm_read_log_efi(struct tpm_chip *chip)
similarity index 99%
rename from drivers/char/tpm/tpm_eventlog_of.c
rename to drivers/char/tpm/eventlog/of.c
index ea0f16f19d73bf81c957270283723148871b3374..e1ec532298f02fb235baec41213956669987f33c 100644 (file)
@@ -19,7 +19,7 @@
 #include <linux/of.h>
 #include <linux/tpm_eventlog.h>
 
-#include "tpm.h"
+#include "../tpm.h"
 
 int tpm_read_log_of(struct tpm_chip *chip)
 {
similarity index 99%
rename from drivers/char/tpm/tpm1_eventlog.c
rename to drivers/char/tpm/eventlog/tpm1.c
index add798bd69d0f176cdd175f60268abd3f6a8b1d8..d6aea3ca950ec70af20defc789ea0c9c25c678e1 100644 (file)
@@ -28,7 +28,7 @@
 #include <linux/slab.h>
 #include <linux/tpm_eventlog.h>
 
-#include "tpm.h"
+#include "../tpm.h"
 
 
 static const char* tcpa_event_type_strings[] = {
similarity index 99%
rename from drivers/char/tpm/tpm2_eventlog.c
rename to drivers/char/tpm/eventlog/tpm2.c
index 1ce4411292ba9f2b37545850a16a97b14a81af4f..f0723fa9ae144736cd380de22b13efbc004276db 100644 (file)
@@ -23,7 +23,7 @@
 #include <linux/slab.h>
 #include <linux/tpm_eventlog.h>
 
-#include "tpm.h"
+#include "../tpm.h"
 
 /*
  * calc_tpm2_event_size() - calculate the event size, where event