[U-Boot] [PATCH v1 2/2] tpm: Add i2c TPM driver
Che-liang Chiou
clchiou at chromium.org
Mon Dec 19 10:51:54 CET 2011
On Sat, Dec 17, 2011 at 1:21 AM, Mike Frysinger <vapier at gentoo.org> wrote:
> On Wednesday 14 December 2011 03:48:24 Che-Liang Chiou wrote:
>> --- /dev/null
>> +++ b/drivers/tpm/tpm.c
>>
>> +int tis_sendrecv(const uint8_t *sendbuf, size_t send_size, uint8_t
>> *recvbuf, + size_t *recv_len)
>> +{
>> + error("%s: invalid send_size %zx\n", __func__, send_size);
>
> using __func__ with error() makes no sense as error() already includes that
Done.
>> --- /dev/null
>> +++ b/drivers/tpm/tpm_private.h
>
> this should probably include linux/types.h and linux/compiler.h since it uses
> __be32 and __packed
Done.
>> --- /dev/null
>> +++ b/drivers/tpm/tpm_tis_i2c.c
>>
>> + if (burstcnt > (len-1-count))
>> + burstcnt = len-1-count;
>
> add some spaces around those "-"
Done.
> -mike
More information about the U-Boot
mailing list