tpm: Simplify creation of cancel path
commit8e36d6ca34243fdc9f48f4bdbe5fca2b19162bfa
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Tue, 16 Apr 2013 21:08:36 +0000 (16 17:08 -0400)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 22 Apr 2013 14:30:13 +0000 (22 09:30 -0500)
tree2b555b5ae5429110bfe3ae3da1ba453ad06aa483
parent56863d4f19c854acc5ebf5f5c1b590eb8164851a
tpm: Simplify creation of cancel path

Simplify the creation of the cancel path given the TPM's device path.
Given the path /dev/tpm0 build the path /sys/class/misc/tpm0/device/cancel.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-id: 1366146516-23814-1-git-send-email-stefanb@linux.vnet.ibm.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/tpm/tpm_passthrough.c