diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-10-17 14:31:03 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-10-17 14:31:03 -0600 |
commit | f132dab76a07473d41e14f5f4fb1857a3229ec6a (patch) | |
tree | 621a8f1ae6cb15d360cd47c0bccd08a1c2226f4e /cmd/sbc_harness/hw/spi.h | |
parent | a1fb6a6103cc7d38d54270bcdb9779982d329c9e (diff) |
libmisc
Diffstat (limited to 'cmd/sbc_harness/hw/spi.h')
-rw-r--r-- | cmd/sbc_harness/hw/spi.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/cmd/sbc_harness/hw/spi.h b/cmd/sbc_harness/hw/spi.h index 86b831e..653e80f 100644 --- a/cmd/sbc_harness/hw/spi.h +++ b/cmd/sbc_harness/hw/spi.h @@ -40,11 +40,8 @@ struct spi_vtable { void (*readwritev)(struct spi *, const struct bidi_iovec *iov, int iovcnt); }; -struct spi { +typedef struct spi { struct spi_vtable *vtable; - - /* This is where your implementation data goes. */ - char data[0]; -}; +} implements_spi; #endif /* _HW_SPI_H_ */ |