summaryrefslogtreecommitdiff
path: root/drivers/char/tpm/xen-tpmfront.c
diff options
context:
space:
mode:
authorJason Gunthorpe <jgunthorpe@obsidianresearch.com>2013-10-05 21:38:02 +0400
committerPeter Huewe <peterhuewe@gmx.de>2013-10-22 21:42:31 +0400
commit58c09e21332c4ab56ac694a71f6715db2768f53f (patch)
treecb1198d4aa42d98dcacab0b5dd845f57c07899b6 /drivers/char/tpm/xen-tpmfront.c
parent6aff1fdc5d59acd7181bdd2f41b34d7bea1b6dcb (diff)
downloadlinux-58c09e21332c4ab56ac694a71f6715db2768f53f.tar.xz
tpm: Use container_of to locate the tpm_chip in tpm_open
misc_open sets the file->private_date to the misc_dev when calling open. We can use container_of to go from the misc_dev back to the tpm_chip. Future clean ups will move tpm_open into a new file and this change means we do not have to export the tpm_chip list. Signed-off-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com> Reviewed-by: Joel Schopp <jschopp@linux.vnet.ibm.com> Reviewed-by: Peter Huewe <peterhuewe@gmx.de> Acked-by: Ashley Lai <adlai@linux.vnet.ibm.com> Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Diffstat (limited to 'drivers/char/tpm/xen-tpmfront.c')
0 files changed, 0 insertions, 0 deletions