spi: Kconfig: Add help text
[oweals/u-boot.git] / drivers / tee / sandbox.c
index 2f3355c7b77d5d04245f082facc11086463f3ad1..4b91e7db1bc65548543d3faa985db0024fe97f51 100644 (file)
@@ -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;