tpm: rename qemu_find_tpm() -> qemu_find_tpm_be()

find_tpm() will be introduced to lookup the TPM device.

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>
This commit is contained in:
Marc-André Lureau 2017-11-06 19:39:14 +01:00 committed by Stefan Berger
parent 023299d87f
commit d36e7db1fb
3 changed files with 3 additions and 3 deletions

View File

@ -1060,7 +1060,7 @@ static void tpm_tis_realizefn(DeviceState *dev, Error **errp)
{
TPMState *s = TPM(dev);
s->be_driver = qemu_find_tpm(s->backend);
s->be_driver = qemu_find_tpm_be(s->backend);
if (!s->be_driver) {
error_setg(errp, "tpm_tis: backend driver with id %s could not be "
"found", s->backend);

View File

@ -192,7 +192,7 @@ TPMVersion tpm_backend_get_tpm_version(TPMBackend *s);
*/
TPMInfo *tpm_backend_query_tpm(TPMBackend *s);
TPMBackend *qemu_find_tpm(const char *id);
TPMBackend *qemu_find_tpm_be(const char *id);
void tpm_register_model(enum TpmModel model);

2
tpm.c
View File

@ -69,7 +69,7 @@ static void tpm_display_backend_drivers(void)
/*
* Find the TPM with the given Id
*/
TPMBackend *qemu_find_tpm(const char *id)
TPMBackend *qemu_find_tpm_be(const char *id)
{
TPMBackend *drv;