optee: rename rpc_arg_count to rpc_param_count
[linux-2.6-microblaze.git] / drivers / tee / optee / ffa_abi.c
index a5eb4ef..7686f70 100644 (file)
@@ -678,7 +678,7 @@ static bool optee_ffa_api_is_compatbile(struct ffa_device *ffa_dev,
 
 static bool optee_ffa_exchange_caps(struct ffa_device *ffa_dev,
                                    const struct ffa_dev_ops *ops,
-                                   unsigned int *rpc_arg_count)
+                                   unsigned int *rpc_param_count)
 {
        struct ffa_send_direct_data data = { OPTEE_FFA_EXCHANGE_CAPABILITIES };
        int rc;
@@ -693,7 +693,7 @@ static bool optee_ffa_exchange_caps(struct ffa_device *ffa_dev,
                return false;
        }
 
-       *rpc_arg_count = (u8)data.data1;
+       *rpc_param_count = (u8)data.data1;
 
        return true;
 }
@@ -772,7 +772,7 @@ static void optee_ffa_remove(struct ffa_device *ffa_dev)
 static int optee_ffa_probe(struct ffa_device *ffa_dev)
 {
        const struct ffa_dev_ops *ffa_ops;
-       unsigned int rpc_arg_count;
+       unsigned int rpc_param_count;
        struct tee_shm_pool *pool;
        struct tee_device *teedev;
        struct tee_context *ctx;
@@ -788,7 +788,7 @@ static int optee_ffa_probe(struct ffa_device *ffa_dev)
        if (!optee_ffa_api_is_compatbile(ffa_dev, ffa_ops))
                return -EINVAL;
 
-       if (!optee_ffa_exchange_caps(ffa_dev, ffa_ops, &rpc_arg_count))
+       if (!optee_ffa_exchange_caps(ffa_dev, ffa_ops, &rpc_param_count))
                return -EINVAL;
 
        optee = kzalloc(sizeof(*optee), GFP_KERNEL);
@@ -805,7 +805,7 @@ static int optee_ffa_probe(struct ffa_device *ffa_dev)
        optee->ops = &optee_ffa_ops;
        optee->ffa.ffa_dev = ffa_dev;
        optee->ffa.ffa_ops = ffa_ops;
-       optee->rpc_arg_count = rpc_arg_count;
+       optee->rpc_param_count = rpc_param_count;
 
        teedev = tee_device_alloc(&optee_ffa_clnt_desc, NULL, optee->pool,
                                  optee);