diff mbox series

[U-Boot,v4,06/32] tpm: fix spelling

Message ID 20180515095728.16572-7-miquel.raynal@bootlin.com
State Accepted
Commit 52da18a378d92ed2bce5a33b9655d8cd4ba50a1f
Delegated to: Tom Rini
Headers show
Series Introduce TPMv2.0 support | expand

Commit Message

Miquel Raynal May 15, 2018, 9:57 a.m. UTC
Fix following checkpatch.pl issues in TPM-related code:

    CHECK: '<x>' may be misspelled - perhaps '<y>'?

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
---
 include/tpm.h | 8 ++++----
 lib/tpm.c     | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

Comments

Tom Rini May 15, 2018, 3:58 p.m. UTC | #1
On Tue, May 15, 2018 at 11:57:02AM +0200, Miquel Raynal wrote:

> Fix following checkpatch.pl issues in TPM-related code:
> 
>     CHECK: '<x>' may be misspelled - perhaps '<y>'?
> 
> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>

Reviewed-by: Tom Rini <trini@konsulko.com>
Simon Glass May 15, 2018, 4:03 p.m. UTC | #2
On 15 May 2018 at 19:57, Miquel Raynal <miquel.raynal@bootlin.com> wrote:
> Fix following checkpatch.pl issues in TPM-related code:
>
>     CHECK: '<x>' may be misspelled - perhaps '<y>'?
>
> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
> ---
>  include/tpm.h | 8 ++++----
>  lib/tpm.c     | 2 +-
>  2 files changed, 5 insertions(+), 5 deletions(-)

Reviewed-by: Simon Glass <sjg@chromium.org>
Tom Rini May 26, 2018, 3:54 p.m. UTC | #3
On Tue, May 15, 2018 at 11:57:02AM +0200, Miquel Raynal wrote:

> Fix following checkpatch.pl issues in TPM-related code:
> 
>     CHECK: '<x>' may be misspelled - perhaps '<y>'?
> 
> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
> Reviewed-by: Tom Rini <trini@konsulko.com>
> Reviewed-by: Simon Glass <sjg@chromium.org>

Applied to u-boot/master, thanks!
diff mbox series

Patch

diff --git a/include/tpm.h b/include/tpm.h
index 241597d879..e1fc2ec252 100644
--- a/include/tpm.h
+++ b/include/tpm.h
@@ -509,7 +509,7 @@  u32 tpm_tsc_physical_presence(u16 presence);
  * Issue a TPM_ReadPubek command.
  *
  * @param data		output buffer for the public endorsement key
- * @param count		size of ouput buffer
+ * @param count		size of output buffer
  * @return return code of the operation
  */
 u32 tpm_read_pubek(void *data, size_t count);
@@ -551,13 +551,13 @@  u32 tpm_physical_set_deactivated(u8 state);
  * @param sub_cap	further definition of capability, which is
  *			limited to be 4-byte wide
  * @param cap		output buffer for capability information
- * @param count		size of ouput buffer
+ * @param count		size of output buffer
  * @return return code of the operation
  */
 u32 tpm_get_capability(u32 cap_area, u32 sub_cap, void *cap, size_t count);
 
 /**
- * Issue a TPM_FlushSpecific command for a AUTH ressource.
+ * Issue a TPM_FlushSpecific command for a AUTH resource.
  *
  * @param auth_handle	handle of the auth session
  * @return return code of the operation
@@ -565,7 +565,7 @@  u32 tpm_get_capability(u32 cap_area, u32 sub_cap, void *cap, size_t count);
 u32 tpm_terminate_auth_session(u32 auth_handle);
 
 /**
- * Issue a TPM_OIAP command to setup an object independant authorization
+ * Issue a TPM_OIAP command to setup an object independent authorization
  * session.
  * Information about the session is stored internally.
  * If there was already an OIAP session active it is terminated and a new
diff --git a/lib/tpm.c b/lib/tpm.c
index 0c57910f53..cc76a46e78 100644
--- a/lib/tpm.c
+++ b/lib/tpm.c
@@ -826,7 +826,7 @@  u32 tpm_terminate_auth_session(u32 auth_handle)
 		0x00, 0x00, 0x00, 0x00,	/* parameter size */
 		0x00, 0x00, 0x00, 0xba,	/* TPM_COMMAND_CODE */
 		0x00, 0x00, 0x00, 0x00,	/* TPM_HANDLE */
-		0x00, 0x00, 0x00, 0x02,	/* TPM_RESSOURCE_TYPE */
+		0x00, 0x00, 0x00, 0x02,	/* TPM_RESOURCE_TYPE */
 	};
 	const size_t req_handle_offset = TPM_REQUEST_HEADER_LENGTH;
 	u8 request[COMMAND_BUFFER_SIZE];