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 <jgunthorpe@obsidianresearch.com>

 

Reviewed-by: Peter Huewe <peterhuewe@gmx.de>

Signed-off-by: Peter Huewe <peterhuewe@gmx.de>

 

Staged here
https://github.com/PeterHuewe/linux-tpmdd for-james

 

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

 

Peter