From patchwork Tue May 15 09:57:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miquel Raynal X-Patchwork-Id: 913530 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=bootlin.com Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 40lY3f19Tkz9s0q for ; Tue, 15 May 2018 20:00:46 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id DD0DBC21E07; Tue, 15 May 2018 10:00:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 92F92C21EEB; Tue, 15 May 2018 09:57:39 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id CE086C21DA2; Tue, 15 May 2018 09:57:34 +0000 (UTC) Received: from mail.bootlin.com (mail.bootlin.com [62.4.15.54]) by lists.denx.de (Postfix) with ESMTP id 46AD6C21D56 for ; Tue, 15 May 2018 09:57:34 +0000 (UTC) Received: by mail.bootlin.com (Postfix, from userid 110) id 0EAAD208BA; Tue, 15 May 2018 11:57:33 +0200 (CEST) Received: from localhost.localdomain (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.bootlin.com (Postfix) with ESMTPSA id C67A920720; Tue, 15 May 2018 11:57:32 +0200 (CEST) From: Miquel Raynal To: Tom Rini , Simon Glass Date: Tue, 15 May 2018 11:57:02 +0200 Message-Id: <20180515095728.16572-7-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180515095728.16572-1-miquel.raynal@bootlin.com> References: <20180515095728.16572-1-miquel.raynal@bootlin.com> Cc: u-boot@lists.denx.de, Bastian Fraune Subject: [U-Boot] [PATCH v4 06/32] tpm: fix spelling X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Fix following checkpatch.pl issues in TPM-related code: CHECK: '' may be misspelled - perhaps ''? Signed-off-by: Miquel Raynal Reviewed-by: Tom Rini Reviewed-by: Simon Glass --- include/tpm.h | 8 ++++---- lib/tpm.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) 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];