From: Jason Gunthorpe Date: Sat, 5 Oct 2013 17:38:02 +0000 (-0600) Subject: tpm: Use container_of to locate the tpm_chip in tpm_open X-Git-Tag: v3.13-rc1~18^2~47 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58c09e21332c4ab56ac694a71f6715db2768f53f;p=pandora-kernel.git 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 Reviewed-by: Joel Schopp Reviewed-by: Peter Huewe Acked-by: Ashley Lai Signed-off-by: Peter Huewe --- Reading git-diff-tree failed