[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 51/63] tpm_spapr: Rename VIO_SPAPR_VTPM to TPM_SPAPR
From: |
Eduardo Habkost |
Subject: |
[PATCH 51/63] tpm_spapr: Rename VIO_SPAPR_VTPM to TPM_SPAPR |
Date: |
Wed, 2 Sep 2020 18:42:59 -0400 |
Make the type checking macro name consistent with the TYPE_*
constant.
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
---
Cc: Stefan Berger <stefanb@linux.ibm.com>
Cc: qemu-devel@nongnu.org
---
hw/tpm/tpm_spapr.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/hw/tpm/tpm_spapr.c b/hw/tpm/tpm_spapr.c
index e3775adc57..aa86d5f943 100644
--- a/hw/tpm/tpm_spapr.c
+++ b/hw/tpm/tpm_spapr.c
@@ -31,7 +31,7 @@
#define DEBUG_SPAPR 0
typedef struct SpaprTpmState SpaprTpmState;
-DECLARE_INSTANCE_CHECKER(SpaprTpmState, VIO_SPAPR_VTPM,
+DECLARE_INSTANCE_CHECKER(SpaprTpmState, TPM_SPAPR,
TYPE_TPM_SPAPR)
typedef struct TpmCrq {
@@ -132,7 +132,7 @@ static inline int spapr_tpm_send_crq(struct SpaprVioDevice
*dev, TpmCrq *crq)
static int tpm_spapr_do_crq(struct SpaprVioDevice *dev, uint8_t *crq_data)
{
- SpaprTpmState *s = VIO_SPAPR_VTPM(dev);
+ SpaprTpmState *s = TPM_SPAPR(dev);
TpmCrq local_crq;
TpmCrq *crq = &s->crq; /* requests only */
int rc;
@@ -235,7 +235,7 @@ static int tpm_spapr_do_crq(struct SpaprVioDevice *dev,
uint8_t *crq_data)
static void tpm_spapr_request_completed(TPMIf *ti, int ret)
{
- SpaprTpmState *s = VIO_SPAPR_VTPM(ti);
+ SpaprTpmState *s = TPM_SPAPR(ti);
TpmCrq *crq = &s->crq;
uint32_t len;
int rc;
@@ -283,7 +283,7 @@ static int tpm_spapr_do_startup_tpm(SpaprTpmState *s,
size_t buffersize)
static const char *tpm_spapr_get_dt_compatible(SpaprVioDevice *dev)
{
- SpaprTpmState *s = VIO_SPAPR_VTPM(dev);
+ SpaprTpmState *s = TPM_SPAPR(dev);
switch (s->be_tpm_version) {
case TPM_VERSION_1_2:
@@ -297,7 +297,7 @@ static const char
*tpm_spapr_get_dt_compatible(SpaprVioDevice *dev)
static void tpm_spapr_reset(SpaprVioDevice *dev)
{
- SpaprTpmState *s = VIO_SPAPR_VTPM(dev);
+ SpaprTpmState *s = TPM_SPAPR(dev);
s->state = SPAPR_VTPM_STATE_NONE;
s->numbytes = 0;
@@ -316,7 +316,7 @@ static void tpm_spapr_reset(SpaprVioDevice *dev)
static enum TPMVersion tpm_spapr_get_version(TPMIf *ti)
{
- SpaprTpmState *s = VIO_SPAPR_VTPM(ti);
+ SpaprTpmState *s = TPM_SPAPR(ti);
if (tpm_backend_had_startup_error(s->be_driver)) {
return TPM_VERSION_UNSPEC;
@@ -377,7 +377,7 @@ static Property tpm_spapr_properties[] = {
static void tpm_spapr_realizefn(SpaprVioDevice *dev, Error **errp)
{
- SpaprTpmState *s = VIO_SPAPR_VTPM(dev);
+ SpaprTpmState *s = TPM_SPAPR(dev);
if (!tpm_find()) {
error_setg(errp, "at most one TPM device is permitted");
--
2.26.2
- [PATCH 47/63] rs6000_mc: Rename RS6000MC_DEVICE to RS6000MC, (continued)
- [PATCH 47/63] rs6000_mc: Rename RS6000MC_DEVICE to RS6000MC, Eduardo Habkost, 2020/09/02
- [PATCH 49/63] stm32f205: Rename STM32F2XXTIMER to STM32F2XX_TIMER, Eduardo Habkost, 2020/09/02
- [PATCH 48/63] sabre: Rename SABRE_DEVICE to SABRE, Eduardo Habkost, 2020/09/02
- [PATCH 50/63] tpm_crb: Rename CRB to TPM_CRB, Eduardo Habkost, 2020/09/02
- [PATCH 52/63] usb: Rename USB_REDIRECT to USB_REDIR, Eduardo Habkost, 2020/09/02
- [PATCH 51/63] tpm_spapr: Rename VIO_SPAPR_VTPM to TPM_SPAPR,
Eduardo Habkost <=
- [PATCH 53/63] usb: Rename USB_SERIAL_DEV to USB_SERIAL, Eduardo Habkost, 2020/09/02
- [PATCH 54/63] usb: Rename USB_STORAGE_DEV to USB_STORAGE, Eduardo Habkost, 2020/09/02
- [PATCH 56/63] vmxnet3: Rename VMXNET3_DEVICE* to VMXNET3*, Eduardo Habkost, 2020/09/02
- [PATCH 55/63] vfio: Rename PCI_VFIO to VFIO_PCI, Eduardo Habkost, 2020/09/02
- [PATCH 58/63] hvf: Rename HVF_STATE to HVF_ACCEL, Eduardo Habkost, 2020/09/02
- [PATCH 57/63] xen: Rename XENBACKEND_DEVICE to XENBACKEND, Eduardo Habkost, 2020/09/02