summaryrefslogtreecommitdiff
path: root/src/drivers/spi/tpm/tpm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/spi/tpm/tpm.c')
-rw-r--r--src/drivers/spi/tpm/tpm.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/drivers/spi/tpm/tpm.c b/src/drivers/spi/tpm/tpm.c
index 9651ea8387..d364cb958a 100644
--- a/src/drivers/spi/tpm/tpm.c
+++ b/src/drivers/spi/tpm/tpm.c
@@ -37,11 +37,11 @@
/* SPI Interface descriptor used by the driver. */
struct tpm_spi_if {
struct spi_slave *slave;
- int (*cs_assert)(struct spi_slave *slave);
- void (*cs_deassert)(struct spi_slave *slave);
- int (*xfer)(struct spi_slave *slave, const void *dout,
- unsigned bytesout, void *din,
- unsigned bytesin);
+ int (*cs_assert)(const struct spi_slave *slave);
+ void (*cs_deassert)(const struct spi_slave *slave);
+ int (*xfer)(const struct spi_slave *slave, const void *dout,
+ size_t bytesout, void *din,
+ size_t bytesin);
};
/* Use the common SPI driver wrapper as the interface callbacks. */