aboutsummaryrefslogtreecommitdiff
path: root/drivers/tpm/tpm_atmel_twi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/tpm/tpm_atmel_twi.c')
-rw-r--r--drivers/tpm/tpm_atmel_twi.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/tpm/tpm_atmel_twi.c b/drivers/tpm/tpm_atmel_twi.c
index 71b101406da..a5dfb348466 100644
--- a/drivers/tpm/tpm_atmel_twi.c
+++ b/drivers/tpm/tpm_atmel_twi.c
@@ -52,7 +52,10 @@ static int tpm_atmel_twi_close(struct udevice *dev)
*/
static int tpm_atmel_twi_get_desc(struct udevice *dev, char *buf, int size)
{
- return 0;
+ if (size < 50)
+ return -ENOSPC;
+
+ return snprintf(buf, size, "Atmel AT97SC3204T I2C 1.2 TPM (%s)", dev->name);
}
/*