summaryrefslogtreecommitdiff
path: root/src/drivers/crb
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2020-08-19 21:51:08 +0200
committerMichael Niewöhner <foss@mniewoehner.de>2020-09-21 15:51:52 +0000
commitd161a2fafd14700b133b1deca7b8a9a5ca1c5283 (patch)
treecf091c2582e17442eb5096322b3c0f328cdbffa0 /src/drivers/crb
parent490546f191cf2aa1aceec97b7d0503f4fb4408f4 (diff)
src/drivers: Drop unneeded empty lines
Change-Id: I202e5d285612b9bf237b588ea3c006187623fdc3 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/44609 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Michael Niewöhner <foss@mniewoehner.de>
Diffstat (limited to 'src/drivers/crb')
-rw-r--r--src/drivers/crb/tis.c2
-rw-r--r--src/drivers/crb/tpm.c3
-rw-r--r--src/drivers/crb/tpm.h2
3 files changed, 0 insertions, 7 deletions
diff --git a/src/drivers/crb/tis.c b/src/drivers/crb/tis.c
index 9d12690def..800d1457f4 100644
--- a/src/drivers/crb/tis.c
+++ b/src/drivers/crb/tis.c
@@ -30,7 +30,6 @@ static const char *tis_get_dev_name(struct tpm2_info *info)
return "Unknown";
}
-
int tis_open(void)
{
if (tpm_is_open) {
@@ -79,7 +78,6 @@ int tis_init(void)
return 0;
}
-
int tis_sendrecv(const uint8_t *sendbuf, size_t sbuf_size, uint8_t *recvbuf, size_t *rbuf_len)
{
int len = tpm2_process_command(sendbuf, sbuf_size, recvbuf, *rbuf_len);
diff --git a/src/drivers/crb/tpm.c b/src/drivers/crb/tpm.c
index 575f973832..476b62b657 100644
--- a/src/drivers/crb/tpm.c
+++ b/src/drivers/crb/tpm.c
@@ -121,7 +121,6 @@ static uint8_t crb_activate_locality(void)
if (rc)
write8(CRB_REG(locality, CRB_REG_LOC_CTRL), LOC_CTRL_REQ_ACCESS);
-
rc = crb_wait_for_reg32(CRB_REG(locality, CRB_REG_LOC_STATE), 750, LOC_STATE_LOC_ASSIGN,
LOC_STATE_LOC_ASSIGN);
if (rc) {
@@ -137,7 +136,6 @@ static uint8_t crb_activate_locality(void)
return 0;
}
-
return locality;
}
@@ -176,7 +174,6 @@ static int crb_switch_to_ready(void)
int tpm2_init(void)
{
-
if (crb_probe()) {
printk(BIOS_ERR, "TPM: Probe failed.\n");
return -1;
diff --git a/src/drivers/crb/tpm.h b/src/drivers/crb/tpm.h
index 449d02fb6b..0d683848ae 100644
--- a/src/drivers/crb/tpm.h
+++ b/src/drivers/crb/tpm.h
@@ -39,7 +39,6 @@
#define CRB_INTF_REG_INTF_SEL (1<<17)
#define CRB_INTF_REG_INTF_LOCK (1<<19)
-
/*REQUEST Register related */
#define CRB_REG_REQUEST_CMD_RDY 0x01
#define CRB_REG_REQUEST_GO_IDLE 0x02
@@ -58,7 +57,6 @@ struct tpm2_info {
uint16_t revision;
};
-
int tpm2_init(void);
void tpm2_get_info(struct tpm2_info *tpm2_info);
size_t tpm2_process_command(const void *tpm2_command, size_t command_size,