tpm: Use container_of to locate the tpm_chip in tpm_open
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 <a99b91d77388df0ccdee94a722cec2f833ed4ae5@obsidianresearch.com>
Reviewed-by: Joel Schopp <393445a1c2a3e41d1f40e9b9ca5be70399eb60db@linux.vnet.ibm.com>
Reviewed-by: Peter Huewe <014f16385c5a8ff1646b588a3d5169b595c0f10e@gmx.de>
Acked-by: Ashley Lai <74c8d5b16bacf4a5997d6535bb4043bbdfe052ea@linux.vnet.ibm.com>
Signed-off-by: Peter Huewe <014f16385c5a8ff1646b588a3d5169b595c0f10e@gmx.de>

KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs