diff options
author | Jens Wiklander <jens.wiklander@linaro.org> | 2021-03-25 17:08:46 +0300 |
---|---|---|
committer | Jens Wiklander <jens.wiklander@linaro.org> | 2021-10-15 12:55:41 +0300 |
commit | c0ab6db39a908d86ed44e8a5632548e2ec1b4dca (patch) | |
tree | 2c8b040764e8c277b7a7e28fbb50ca57a60d7cd8 /drivers/tee/optee/optee_private.h | |
parent | 9028b2463c1ea96f51c3ba53e2479346019ff6ad (diff) | |
download | linux-c0ab6db39a908d86ed44e8a5632548e2ec1b4dca.tar.xz |
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); |