From: Mike Frysinger Date: Fri, 16 Dec 2011 12:21:13 -0500 Subject: [U-Boot] [PATCH v1 2/2] tpm: Add i2c TPM driver In-Reply-To: <1323852504-19954-3-git-send-email-clchiou@chromium.org> References: <1323852504-19954-1-git-send-email-clchiou@chromium.org> <1323852504-19954-3-git-send-email-clchiou@chromium.org> Message-ID: <201112161221.14711.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > --- /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 > --- /dev/null > +++ b/drivers/tpm/tpm_tis_i2c.c > > + if (burstcnt > (len-1-count)) > + burstcnt = len-1-count; add some spaces around those "-" -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. URL: