Re: [PATCH v4] tpm: fix reference counting for struct tpm_chip

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux Kernel]     [Linux Kernel Hardening]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux