From f132dab76a07473d41e14f5f4fb1857a3229ec6a Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Thu, 17 Oct 2024 14:31:03 -0600 Subject: libmisc --- cmd/sbc_harness/hw/spi.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'cmd/sbc_harness/hw/spi.h') 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_ */ -- cgit v1.2.3-2-g168b