tpm_crb: Use the common ACPI definition of struct acpi_tpm2
authorJason Gunthorpe <jgunthorpe@obsidianresearch.com>
Fri, 8 Jan 2016 00:36:20 +0000 (17:36 -0700)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Wed, 10 Feb 2016 02:11:18 +0000 (04:11 +0200)
commit55a889c2cb138f8f10164539c6d290a1cefaa863
tree1cb5f1cdf007a0543dc3eacce29e5aba6e66fe04
parentf3c82ade7c59303167d56b0be3e0707751fc45e2
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>
drivers/char/tpm/tpm.h
drivers/char/tpm/tpm_crb.c
drivers/char/tpm/tpm_tis.c