diff options
author | Jens Wiklander <jens.wiklander@linaro.org> | 2021-03-25 15:08:46 +0100 |
---|---|---|
committer | Jens Wiklander <jens.wiklander@linaro.org> | 2021-10-15 11:55:41 +0200 |
commit | c0ab6db39a908d86ed44e8a5632548e2ec1b4dca (patch) | |
tree | 2c8b040764e8c277b7a7e28fbb50ca57a60d7cd8 /drivers/tee/optee/optee_private.h | |
parent | tee: add sec_world_id to struct tee_shm (diff) | |
download | linux-c0ab6db39a908d86ed44e8a5632548e2ec1b4dca.tar.xz linux-c0ab6db39a908d86ed44e8a5632548e2ec1b4dca.zip |
optee: simplify optee_release()
Simplifies optee_release() with a new helper function,
optee_close_session_helper() which has been factored out from
optee_close_session().
A separate optee_release_supp() is added for the supplicant device.
Reviewed-by: Sumit Garg <sumit.garg@linaro.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Diffstat (limited to 'drivers/tee/optee/optee_private.h')
-rw-r--r-- | drivers/tee/optee/optee_private.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/tee/optee/optee_private.h b/drivers/tee/optee/optee_private.h index f6bb4a763ba9..a55793f9f6eb 100644 --- a/drivers/tee/optee/optee_private.h +++ b/drivers/tee/optee/optee_private.h @@ -152,6 +152,7 @@ u32 optee_do_call_with_arg(struct tee_context *ctx, phys_addr_t parg); int optee_open_session(struct tee_context *ctx, struct tee_ioctl_open_session_arg *arg, struct tee_param *param); +int optee_close_session_helper(struct tee_context *ctx, u32 session); int optee_close_session(struct tee_context *ctx, u32 session); int optee_invoke_func(struct tee_context *ctx, struct tee_ioctl_invoke_arg *arg, struct tee_param *param); |