summaryrefslogtreecommitdiffstats
path: root/backends
diff options
context:
space:
mode:
authorMarc-André Lureau2017-10-10 00:56:02 +0200
committerStefan Berger2017-10-19 17:42:33 +0200
commit05a699985c001927a50f8f276251f2af1e0c5b58 (patch)
tree6ceaf9311f014cf2be96a4194d98f593bc399184 /backends
parenttpm: add a QOM TPM interface (diff)
downloadqemu-05a699985c001927a50f8f276251f2af1e0c5b58.tar.gz
qemu-05a699985c001927a50f8f276251f2af1e0c5b58.tar.xz
qemu-05a699985c001927a50f8f276251f2af1e0c5b58.zip
tpm: move recv_data_callback to TPM interface
Simplify the TPM backend setup, move callback to TPM interface. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Stefan Berger <stefanb@linux.vnet.ibm.com> Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Diffstat (limited to 'backends')
-rw-r--r--backends/tpm.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/backends/tpm.c b/backends/tpm.c
index 87c5c09179..5763f6f369 100644
--- a/backends/tpm.c
+++ b/backends/tpm.c
@@ -44,11 +44,9 @@ enum TpmType tpm_backend_get_type(TPMBackend *s)
return k->type;
}
-int tpm_backend_init(TPMBackend *s, TPMState *state,
- TPMRecvDataCB *datacb)
+int tpm_backend_init(TPMBackend *s, TPMState *state)
{
s->tpm_state = state;
- s->recv_data_callback = datacb;
s->had_startup_error = false;
return 0;