lkml.org 
[lkml]   [2021]   [Feb]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v4] tpm: fix reference counting for struct tpm_chip
From
Date
Hi

On 16.02.21 at 17:04, Jarkko Sakkinen wrote:

>>> + /*
>>> + * get extra reference on main device to hold on behalf of devs.
>>> + * This holds the chip structure while cdevs is in use. The
>>> + * corresponding put is in the tpm_devs_release.
>>> + */
>>> + get_device(&chip->dev);
>>> + chip->devs.release = tpm_devs_release;
>>> + chip->devs.devt =
>>> + MKDEV(MAJOR(tpm_devt), chip->dev_num + TPM_NUM_DEVICES);
>
> Isn't this less than 100 chars?
>

I just chose the same formatting that the original code used. Personally I prefer what
David suggested, so if there is no objection against it I will format it this way.

Regards,
Lino

\
 
 \ /
  Last update: 2021-02-17 11:38    [W:0.212 / U:0.220 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site