tpm: rename TPM_TRANSMIT_RAW -> TPM_TRANSMIT_IGNORE_LOCALITY
Subsystems (2)
PATCH 1/1 tpm: rename TPM_TRANSMIT_RAW -> TPM_TRANSMIT_IGNORE_LOCALITY
The previous name does not give any picture of the behaviour.
Signed-off-by Jarkko Sakkinen <[email protected]>
--- drivers/char/tpm/tpm-interface.c | 2 +- drivers/char/tpm/tpm.h | 4 ++-- drivers/char/tpm/tpm_vtpm_proxy.c | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-)
drivers/char/tpm/tpm-interface.c +1 -1
@@ -431,7 +431,7 @@ ssize_t tpm_transmit(struct tpm_chip *chip, struct tpm_space *space,/* Store the decision as chip->locality will be changed. */ need_locality = chip->locality ==-1 ; -if (!(flags &TPM_TRANSMIT_RAW ) && +if (!(flags &TPM_TRANSMIT_IGNORE_LOCALITY ) && need_locality && chip->ops->request_locality) { rc = chip->ops->request_locality (chip,0 );if (rc <0 )
drivers/char/tpm/tpm.h +2 -2
@@ -499,8 +499,8 @@ extern const struct file_operations tpmrm_fops;extern struct idr dev_nums_idr;enum tpm_transmit_flags { -TPM_TRANSMIT_UNLOCKED =BIT (0 ), -TPM_TRANSMIT_RAW =BIT (1 ), +TPM_TRANSMIT_UNLOCKED =BIT (0 ), +TPM_TRANSMIT_IGNORE_LOCALITY =BIT (1 ), }; ssize_t tpm_transmit(struct tpm_chip *chip, struct tpm_space *space,
drivers/char/tpm/tpm_vtpm_proxy.c +2 -1
@@ -418,7 +418,8 @@ static int vtpm_proxy_request_locality(struct tpm_chip *chip, int locality) proxy_dev->state |=STATE_DRIVER_COMMAND ; rc =tpm_transmit_cmd (chip,NULL , buf.data,tpm_buf_length (&buf),0 , -TPM_TRANSMIT_UNLOCKED |TPM_TRANSMIT_RAW , +TPM_TRANSMIT_UNLOCKED | +TPM_TRANSMIT_IGNORE_LOCALITY ,"attempting to set locality" ); proxy_dev->state &= ~STATE_DRIVER_COMMAND ;
Signature · 1 line
2.14.1
Quoted 8 lines · Jarkko Sakkinen
The previous name does not give any picture of the behaviour.
Signed-off-by Jarkko Sakkinen <[email protected]>--- drivers/char/tpm/tpm-interface.c | 2 +- drivers/char/tpm/tpm.h | 4 ++-- drivers/char/tpm/tpm_vtpm_proxy.c | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-)
Are there people who are against of merging this change?
/Jarkko