OSDN Git Service

tpm: Remove duplicate code from caps_show() in tpm-sysfs.c
authorJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Mon, 2 Sep 2019 14:27:33 +0000 (07:27 -0700)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Tue, 12 Nov 2019 19:45:36 +0000 (21:45 +0200)
commitf2f5820e3ba6b7ce17dc7cc10a1e838378edcf75
tree70ff3e52dd615fb82e5479f518163b905da89d5e
parenteb094f06963bb0fd8134c6a9b805d4ad0002a7d4
tpm: Remove duplicate code from caps_show() in tpm-sysfs.c

Replace existing TPM 1.x version structs with new structs that consolidate
the common parts into a single struct so that code duplication is no longer
needed in caps_show().

Cc: Peter Huewe <peterhuewe@gmx.de>
Cc: Jason Gunthorpe <jgg@ziepe.ca>
Cc: Alexey Klimov <aklimov@redhat.com>
Reviewed-by: Jerry Snitselaar <jsnitsel@redhat.com>
Tested-by: Jerry Snitselaar <jsnitsel@redhat.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
drivers/char/tpm/tpm-sysfs.c
drivers/char/tpm/tpm.h