Re: [tpmdd-devel] [PATCH 05/13] tpm: Use container_of to locate thetpm_chip in tpm_open

From: Ashley Lai
Date: Fri Oct 04 2013 - 21:48:13 EST


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 <jgunthorpe@xxxxxxxxxxxxxxxxxxxx>

Acked-by: Ashley Lai <adlai@xxxxxxxxxxxxxxxxxx>

Thanks,
--Ashley Lai

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/