diff options
author | Jason Gunthorpe <jgunthorpe@obsidianresearch.com> | 2016-01-07 17:36:20 -0700 |
---|---|---|
committer | Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> | 2016-02-10 04:11:18 +0200 |
commit | 55a889c2cb138f8f10164539c6d290a1cefaa863 (patch) | |
tree | 1cb5f1cdf007a0543dc3eacce29e5aba6e66fe04 /drivers/char/tpm/tpm_tis.c | |
parent | f3c82ade7c59303167d56b0be3e0707751fc45e2 (diff) | |
download | linux-55a889c2cb138f8f10164539c6d290a1cefaa863.tar.gz linux-55a889c2cb138f8f10164539c6d290a1cefaa863.tar.bz2 linux-55a889c2cb138f8f10164539c6d290a1cefaa863.zip |
tpm_crb: Use the common ACPI definition of struct acpi_tpm2
include/acpi/actbl2.h is the proper place for these definitions
and the needed TPM2 ones have been there since
commit 413d4a6defe0 ("ACPICA: Update TPM2 ACPI table")
This also drops a couple of le32_to_cpu's for members of this table,
the existing swapping was not done consistently, and the standard
used by other Linux callers of acpi_get_table is unswapped.
Signed-off-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Tested-by: Wilck, Martin <martin.wilck@ts.fujitsu.com>
Tested-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Acked-by: Peter Huewe <peterhuewe@gmx.de>
Diffstat (limited to 'drivers/char/tpm/tpm_tis.c')
-rw-r--r-- | drivers/char/tpm/tpm_tis.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/tpm/tpm_tis.c b/drivers/char/tpm/tpm_tis.c index b89d125eec7f..eb31644111a6 100644 --- a/drivers/char/tpm/tpm_tis.c +++ b/drivers/char/tpm/tpm_tis.c @@ -134,7 +134,7 @@ static inline int is_fifo(struct acpi_device *dev) return 0; } - if (le32_to_cpu(tbl->start_method) != TPM2_START_FIFO) + if (tbl->start_method != ACPI_TPM2_MEMORY_MAPPED) return 0; /* TPM 2.0 FIFO */ |