Skip to content
Snippets Groups Projects
Commit 8c872863 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Jarkko Sakkinen
Browse files

tpm/tpm_ftpm_tee: Use UUID API for exporting the UUID


There is export_uuid() function which exports uuid_t to the u8 array.
Use it instead of open coding variant.

This allows to hide the uuid_t internals.

Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: default avatarJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: default avatarJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
parent 051143e1
Branches
No related tags found
No related merge requests found
...@@ -241,7 +241,7 @@ static int ftpm_tee_probe(struct platform_device *pdev) ...@@ -241,7 +241,7 @@ static int ftpm_tee_probe(struct platform_device *pdev)
/* Open a session with fTPM TA */ /* Open a session with fTPM TA */
memset(&sess_arg, 0, sizeof(sess_arg)); memset(&sess_arg, 0, sizeof(sess_arg));
memcpy(sess_arg.uuid, ftpm_ta_uuid.b, TEE_IOCTL_UUID_LEN); export_uuid(sess_arg.uuid, &ftpm_ta_uuid);
sess_arg.clnt_login = TEE_IOCTL_LOGIN_PUBLIC; sess_arg.clnt_login = TEE_IOCTL_LOGIN_PUBLIC;
sess_arg.num_params = 0; sess_arg.num_params = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment