mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
tpm: Convert to use a device parameter
At present many TPM calls assume there is only one TPM in the system and look up this TPM themselves. This is inconsistent with driver model, which expects all driver methods to have a device parameter. Update the code to correct this. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -78,6 +78,7 @@ u32 tpm_return_code(const void *response);
|
||||
* is a bidirectional
|
||||
* @return return code of the TPM response
|
||||
*/
|
||||
u32 tpm_sendrecv_command(const void *command, void *response, size_t *size_ptr);
|
||||
u32 tpm_sendrecv_command(struct udevice *dev, const void *command,
|
||||
void *response, size_t *size_ptr);
|
||||
|
||||
#endif /* __TPM_UTILS_H */
|
||||
|
Reference in New Issue
Block a user