summaryrefslogtreecommitdiff
path: root/cmd/sbc_harness/hw/spi.h
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/sbc_harness/hw/spi.h')
-rw-r--r--cmd/sbc_harness/hw/spi.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/cmd/sbc_harness/hw/spi.h b/cmd/sbc_harness/hw/spi.h
index 653e80f..da588de 100644
--- a/cmd/sbc_harness/hw/spi.h
+++ b/cmd/sbc_harness/hw/spi.h
@@ -22,7 +22,11 @@ struct bidi_iovec {
size_t iov_len;
};
-struct spi;
+struct spi_vtable;
+
+typedef struct {
+ struct spi_vtable *vtable;
+} implements_spi;
/* This API assumes that an SPI frame is a multiple of 8-bits.
*
@@ -37,11 +41,7 @@ struct spi;
* non-multiple-of-8 number of bits.
*/
struct spi_vtable {
- void (*readwritev)(struct spi *, const struct bidi_iovec *iov, int iovcnt);
+ void (*readwritev)(implements_spi *, const struct bidi_iovec *iov, int iovcnt);
};
-typedef struct spi {
- struct spi_vtable *vtable;
-} implements_spi;
-
#endif /* _HW_SPI_H_ */