tee: add tee_shm_register_{user,kernel}_buf()
authorJens Wiklander <jens.wiklander@linaro.org>
Tue, 21 Dec 2021 09:46:32 +0000 (10:46 +0100)
committerJens Wiklander <jens.wiklander@linaro.org>
Fri, 4 Feb 2022 09:09:06 +0000 (10:09 +0100)
commit425011979076f57bbe028810307634e426bb2f18
treeea17b4e7dfdac96f6855c7d162e1ae9efcead42f
parentb62c21855ad8e5bf4478b352d4885b10d7461a71
tee: add tee_shm_register_{user,kernel}_buf()

Adds the two new functions tee_shm_register_user_buf() and
tee_shm_register_kernel_buf() which should be used instead of the old
tee_shm_register().

This avoids having the caller supplying the flags parameter which
exposes a bit more than desired of the internals of the TEE subsystem.

Reviewed-by: Sumit Garg <sumit.garg@linaro.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
drivers/tee/tee_core.c
drivers/tee/tee_private.h
drivers/tee/tee_shm.c
include/linux/tee_drv.h