aboutsummaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorJason Gunthorpe <[email protected]>2013-10-05 11:38:02 -0600
committerPeter Huewe <[email protected]>2013-10-22 19:42:31 +0200
commit58c09e21332c4ab56ac694a71f6715db2768f53f (patch)
treecb1198d4aa42d98dcacab0b5dd845f57c07899b6 /include/linux/debugobjects.h
parent6aff1fdc5d59acd7181bdd2f41b34d7bea1b6dcb (diff)
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 <[email protected]> Reviewed-by: Joel Schopp <[email protected]> Reviewed-by: Peter Huewe <[email protected]> Acked-by: Ashley Lai <[email protected]> Signed-off-by: Peter Huewe <[email protected]>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions