summaryrefslogtreecommitdiff
path: root/drivers/tee/sandbox.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2019-08-12 18:46:07 -0400
committerTom Rini <trini@konsulko.com>2019-08-12 18:46:07 -0400
commit5939afc9611e8ba4a86b96e67670b765ee27668e (patch)
tree369402e0305a7b8f9f905baec6387bfd9683ba71 /drivers/tee/sandbox.c
parentd7ae932152ddf58125a05f4eb28596d9b31bdb1e (diff)
parentec1fa18561f818bee252da2c331d371ad26037d2 (diff)
Merge branch '2019-08-11-master-imports'
- environment cleanup - HiKey 960 support - Some PCI fixes
Diffstat (limited to 'drivers/tee/sandbox.c')
-rw-r--r--drivers/tee/sandbox.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/tee/sandbox.c b/drivers/tee/sandbox.c
index 2f3355c7b77..4b91e7db1bc 100644
--- a/drivers/tee/sandbox.c
+++ b/drivers/tee/sandbox.c
@@ -79,7 +79,7 @@ static u32 ta_avb_invoke_func(struct udevice *dev, u32 func, uint num_params,
struct tee_param *params)
{
struct sandbox_tee_state *state = dev_get_priv(dev);
- ENTRY e, *ep;
+ struct env_entry e, *ep;
char *name;
u32 res;
uint slot;
@@ -174,7 +174,7 @@ static u32 ta_avb_invoke_func(struct udevice *dev, u32 func, uint num_params,
e.key = name;
e.data = NULL;
- hsearch_r(e, FIND, &ep, &state->pstorage_htab, 0);
+ hsearch_r(e, ENV_FIND, &ep, &state->pstorage_htab, 0);
if (!ep)
return TEE_ERROR_ITEM_NOT_FOUND;
@@ -198,13 +198,13 @@ static u32 ta_avb_invoke_func(struct udevice *dev, u32 func, uint num_params,
e.key = name;
e.data = NULL;
- hsearch_r(e, FIND, &ep, &state->pstorage_htab, 0);
+ hsearch_r(e, ENV_FIND, &ep, &state->pstorage_htab, 0);
if (ep)
hdelete_r(e.key, &state->pstorage_htab, 0);
e.key = name;
e.data = value;
- hsearch_r(e, ENTER, &ep, &state->pstorage_htab, 0);
+ hsearch_r(e, ENV_ENTER, &ep, &state->pstorage_htab, 0);
if (!ep)
return TEE_ERROR_OUT_OF_MEMORY;