Skip to content

Commit 0bfb237

Browse files
tweksteenJarkko Sakkinen
authored andcommitted
tpm: Move eventlog files to a subdirectory
Signed-off-by: Thiebaud Weksteen <[email protected]> Suggested-by: Jarkko Sakkinen <[email protected]> Reviewed-by: Jarkko Sakkinen <[email protected]> Tested-by: Jarkko Sakkinen <[email protected]> Signed-off-by: Jarkko Sakkinen <[email protected]>
1 parent 09dd144 commit 0bfb237

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

drivers/char/tpm/Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
#
55
obj-$(CONFIG_TCG_TPM) += tpm.o
66
tpm-y := tpm-interface.o tpm-dev.o tpm-sysfs.o tpm-chip.o tpm2-cmd.o \
7-
tpm-dev-common.o tpmrm-dev.o tpm1_eventlog.o tpm2_eventlog.o \
7+
tpm-dev-common.o tpmrm-dev.o eventlog/tpm1.o eventlog/tpm2.o \
88
tpm2-space.o
9-
tpm-$(CONFIG_ACPI) += tpm_ppi.o tpm_eventlog_acpi.o
10-
tpm-$(CONFIG_EFI) += tpm_eventlog_efi.o
11-
tpm-$(CONFIG_OF) += tpm_eventlog_of.o
9+
tpm-$(CONFIG_ACPI) += tpm_ppi.o eventlog/acpi.o
10+
tpm-$(CONFIG_EFI) += eventlog/efi.o
11+
tpm-$(CONFIG_OF) += eventlog/of.o
1212
obj-$(CONFIG_TCG_TIS_CORE) += tpm_tis_core.o
1313
obj-$(CONFIG_TCG_TIS) += tpm_tis.o
1414
obj-$(CONFIG_TCG_TIS_SPI) += tpm_tis_spi.o

drivers/char/tpm/tpm_eventlog_acpi.c renamed to drivers/char/tpm/eventlog/acpi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#include <linux/acpi.h>
2828
#include <linux/tpm_eventlog.h>
2929

30-
#include "tpm.h"
30+
#include "../tpm.h"
3131

3232
struct acpi_tcpa {
3333
struct acpi_table_header hdr;

drivers/char/tpm/tpm_eventlog_efi.c renamed to drivers/char/tpm/eventlog/efi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include <linux/efi.h>
1515
#include <linux/tpm_eventlog.h>
1616

17-
#include "tpm.h"
17+
#include "../tpm.h"
1818

1919
/* read binary bios log from EFI configuration table */
2020
int tpm_read_log_efi(struct tpm_chip *chip)

drivers/char/tpm/tpm_eventlog_of.c renamed to drivers/char/tpm/eventlog/of.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include <linux/of.h>
2020
#include <linux/tpm_eventlog.h>
2121

22-
#include "tpm.h"
22+
#include "../tpm.h"
2323

2424
int tpm_read_log_of(struct tpm_chip *chip)
2525
{

drivers/char/tpm/tpm1_eventlog.c renamed to drivers/char/tpm/eventlog/tpm1.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#include <linux/slab.h>
2929
#include <linux/tpm_eventlog.h>
3030

31-
#include "tpm.h"
31+
#include "../tpm.h"
3232

3333

3434
static const char* tcpa_event_type_strings[] = {

drivers/char/tpm/tpm2_eventlog.c renamed to drivers/char/tpm/eventlog/tpm2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#include <linux/slab.h>
2424
#include <linux/tpm_eventlog.h>
2525

26-
#include "tpm.h"
26+
#include "../tpm.h"
2727

2828
/*
2929
* calc_tpm2_event_size() - calculate the event size, where event

0 commit comments

Comments
 (0)