Am Montag, 23. September 2013, 20:14:35 schrieb Jason Gunthorpe:

> 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: Peter Huewe <>

Signed-off-by: Peter Huewe <>


Staged here for-james


Nevertheless I'll try test this using several tpms/platforms.