tpm: Introduce TPM_CHIP_FLAG_VIRTUAL
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Mon, 18 Apr 2016 17:26:14 +0000 (13:26 -0400)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Sat, 25 Jun 2016 14:26:35 +0000 (17:26 +0300)
commit2f9f53776dcd8ca3cc3d357d516ed76c3f038637
treebcd27c6396a0c7e7efe38aa407afb0548b43f1c1
parent062807f20e3f363dc5db0c7927bb6223dd1f46a2
tpm: Introduce TPM_CHIP_FLAG_VIRTUAL

Introduce TPM_CHIP_FLAG_VIRTUAL to be used when the chip device has no
parent device.

Prevent sysfs entries requiring a parent device from being created.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Reviewed-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Tested-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
drivers/char/tpm/tpm-chip.c
drivers/char/tpm/tpm.h