Re: [PATCH v2 2/3] tpm: Provide a function tpm_chip_free() to free tpm chips
From: Lino Sanfilippo
Date: Wed Feb 03 2021 - 09:10:48 EST
Hi
On 03.02.21 02:28, Jarkko Sakkinen wrote:
> On Tue, Feb 02, 2021 at 11:09:02PM +0100, Lino Sanfilippo wrote:
>> From: Lino Sanfilippo <l.sanfilippo@xxxxxxxxxx>
>>
>> Provide a function tpm_chip_free() as a counterpart to tpm_chip_alloc().
>> The function hides the internals of freeing a struct tpm_chip instance
>> by putting the device references which are part of this structure.
>>
>> Use the new function at the appropriate places.
>>
>> Signed-off-by: Lino Sanfilippo <l.sanfilippo@xxxxxxxxxx>
>
> I prefer open coding here.
>
> /Jarkko
>
Ok, then I will drop this patch in the next series version.
Regards,
Lino