tpm: Move sysfs functions from tpm-interface to tpm-sysfs
authorJason Gunthorpe <jgunthorpe@obsidianresearch.com>
Tue, 26 Nov 2013 20:30:41 +0000 (13:30 -0700)
committerPeter Huewe <peterhuewe@gmx.de>
Mon, 6 Jan 2014 13:37:24 +0000 (14:37 +0100)
commit000a07b0aac1bc69bcf602b468d975c3e37a155c
tree44803c680363cae1f463d40ed3ede17ab67e3573
parentafdba32e2a9ea729a9f9f280dbf6c718773c7ded
tpm: Move sysfs functions from tpm-interface to tpm-sysfs

CLASS-sysfs.c is a common idiom for linux subsystems.

This is the first step to pulling all the sysfs support code from
the drivers into tpm-sysfs. This is a plain text copy from tpm-interface
with support changes to make it compile.

_tpm_pcr_read is made non-static and is called tpm_pcr_read_dev.

Signed-off-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
drivers/char/tpm/Makefile
drivers/char/tpm/tpm-interface.c
drivers/char/tpm/tpm-sysfs.c [new file with mode: 0644]
drivers/char/tpm/tpm.h