summaryrefslogtreecommitdiff
path: root/drivers/tee/tee_shm_pool.c
diff options
context:
space:
mode:
authorJens Wiklander <jens.wiklander@linaro.org>2022-02-04 10:33:59 +0100
committerJens Wiklander <jens.wiklander@linaro.org>2022-02-16 07:49:41 +0100
commita45ea4efa358577c623d7353a6ba9af3c17f6ca0 (patch)
treecdcfaf05b949c5d508c583355c24ef64605ff48d /drivers/tee/tee_shm_pool.c
parent53e16519c2eccdb2e1b123405466a29aaea1132e (diff)
tee: refactor TEE_SHM_* flags
Removes the redundant TEE_SHM_DMA_BUF, TEE_SHM_EXT_DMA_BUF, TEE_SHM_MAPPED and TEE_SHM_KERNEL_MAPPED flags. TEE_SHM_REGISTER is renamed to TEE_SHM_DYNAMIC in order to better match its usage. Assigns new values to the remaining flags to void gaps. Reviewed-by: Sumit Garg <sumit.garg@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Diffstat (limited to 'drivers/tee/tee_shm_pool.c')
-rw-r--r--drivers/tee/tee_shm_pool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tee/tee_shm_pool.c b/drivers/tee/tee_shm_pool.c
index 71e0f8ae69aa..058bfbac657a 100644
--- a/drivers/tee/tee_shm_pool.c
+++ b/drivers/tee/tee_shm_pool.c
@@ -30,7 +30,7 @@ static int pool_op_gen_alloc(struct tee_shm_pool *pool, struct tee_shm *shm,
* This is from a static shared memory pool so no need to register
* each chunk, and no need to unregister later either.
*/
- shm->flags &= ~TEE_SHM_REGISTER;
+ shm->flags &= ~TEE_SHM_DYNAMIC;
return 0;
}