Re: [tpmdd-devel] [PATCH 05/13] tpm: Use container_of to locate the tpm_chip in tpm_open
On Mon, 2013-09-23 at 12:14 -0600, Jason Gunthorpe wrote: > 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 Acked-by: Ashley Lai Thanks, --Ashley Lai -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [tpmdd-devel] [PATCH 05/13] tpm: Use container_of to locate the tpm_chip in tpm_open
On Mon, 2013-09-23 at 12:14 -0600, Jason Gunthorpe wrote: 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 jguntho...@obsidianresearch.com Acked-by: Ashley Lai ad...@linux.vnet.ibm.com Thanks, --Ashley Lai -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/