From df6af1c78539bbee431f1319dd07c273a33d2c89 Mon Sep 17 00:00:00 2001 From: rui guo Date: Fri, 24 Jun 2022 17:18:22 +0800 Subject: [PATCH] linuxdriver: fix typo check [1/1] PD#SWPL-86276 Problem: typo check Solution: Correct word Verify: Android R Signed-off-by: rui guo Change-Id: I171c4cc2c6815452ef30eee304d1f272f07ecdbe --- include/linux/tee_drv.h | 6 +++--- optee/core.c | 2 +- optee/optee_msg.h | 4 ++-- optee/optee_smc.h | 2 +- tee_shm.c | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/include/linux/tee_drv.h b/include/linux/tee_drv.h index 401c014..b43c1a2 100644 --- a/include/linux/tee_drv.h +++ b/include/linux/tee_drv.h @@ -74,7 +74,7 @@ struct tee_param { * @close_session: close a session * @invoke_func: invoke a trusted function * @cancel_req: request cancel of an ongoing invoke or open - * @supp_revc: called for supplicant to get a command + * @supp_recv: called for supplicant to get a command * @supp_send: called for supplicant to send a response */ struct tee_driver_ops { @@ -235,7 +235,7 @@ void tee_shm_put(struct tee_shm *shm); /** * tee_shm_va2pa() - Get physical address of a virtual address * @shm: Shared memory handle - * @va: Virtual address to tranlsate + * @va: Virtual address to translate * @pa: Returned physical address * @returns 0 on success and < 0 on failure */ @@ -244,7 +244,7 @@ int tee_shm_va2pa(struct tee_shm *shm, void *va, phys_addr_t *pa); /** * tee_shm_pa2va() - Get virtual address of a physical address * @shm: Shared memory handle - * @pa: Physical address to tranlsate + * @pa: Physical address to translate * @va: Returned virtual address * @returns 0 on success and < 0 on failure */ diff --git a/optee/core.c b/optee/core.c index c33b586..f067e7e 100644 --- a/optee/core.c +++ b/optee/core.c @@ -102,7 +102,7 @@ int optee_from_msg_param(struct tee_param *params, size_t num_params, * optee_to_msg_param() - convert from struct tee_params to OPTEE_MSG parameters * @msg_params: OPTEE_MSG parameters * @num_params: number of elements in the parameter arrays - * @params: subsystem itnernal parameter representation + * @params: subsystem internal parameter representation * Returns 0 on success or <0 on failure */ int optee_to_msg_param(struct optee_msg_param *msg_params, size_t num_params, diff --git a/optee/optee_msg.h b/optee/optee_msg.h index 77ed245..41489e2 100644 --- a/optee/optee_msg.h +++ b/optee/optee_msg.h @@ -67,7 +67,7 @@ #define OPTEE_MSG_ATTR_META BIT(8) /* - * The temporary shared memory object is not physically contigous and this + * The temporary shared memory object is not physically contiguous and this * temp memref is followed by another fragment until the last temp memref * that doesn't have this bit set. */ @@ -318,7 +318,7 @@ struct optee_msg_arg { * struct optee_msg_arg::arg holds values defined by OPTEE_MSG_RPC_CMD_* below * * RPC communication with tee-supplicant is reversed compared to normal - * client communication desribed above. The supplicant receives requests + * client communication described above. The supplicant receives requests * and sends responses. */ diff --git a/optee/optee_smc.h b/optee/optee_smc.h index a068199..ba3161e 100644 --- a/optee/optee_smc.h +++ b/optee/optee_smc.h @@ -153,7 +153,7 @@ struct optee_smc_calls_revision_result { * optee_msg_arg. * OPTEE_SMC_RETURN_ETHREAD_LIMIT Number of Trusted OS threads exceeded, * try again later. - * OPTEE_SMC_RETURN_EBADADDR Bad physcial pointer to struct + * OPTEE_SMC_RETURN_EBADADDR Bad physicial pointer to struct * optee_msg_arg. * OPTEE_SMC_RETURN_EBADCMD Bad/unknown cmd in struct optee_msg_arg * OPTEE_SMC_RETURN_IS_RPC() Call suspended by RPC call to normal diff --git a/tee_shm.c b/tee_shm.c index 89b1c07..6bcb52f 100644 --- a/tee_shm.c +++ b/tee_shm.c @@ -367,7 +367,7 @@ EXPORT_SYMBOL_GPL(tee_shm_free); /** * tee_shm_va2pa() - Get physical address of a virtual address * @shm: Shared memory handle - * @va: Virtual address to tranlsate + * @va: Virtual address to translate * @pa: Returned physical address * @returns 0 on success and < 0 on failure */ @@ -389,7 +389,7 @@ EXPORT_SYMBOL_GPL(tee_shm_va2pa); /** * tee_shm_pa2va() - Get virtual address of a physical address * @shm: Shared memory handle - * @pa: Physical address to tranlsate + * @pa: Physical address to translate * @va: Returned virtual address * @returns 0 on success and < 0 on failure */ -- 2.20.1