From 0e6096eea7b8034f7db474488ae4171fa6ab165d Mon Sep 17 00:00:00 2001 From: Blake Gentry Date: Mon, 5 Oct 2015 21:50:38 -0700 Subject: [PATCH] add csChange, pad fields to spiIOCTransfer struct Per the discussion in #38, these two fields are part of the equivalent struct in the kernel SPI driver. Adding the fields allows the SPI driver to work on a Raspberry Pi Model 2 B. h/t @hbhasker Fixes #38. Fixes #24. --- host/generic/spibus.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/host/generic/spibus.go b/host/generic/spibus.go index f682daa..2f8c26d 100644 --- a/host/generic/spibus.go +++ b/host/generic/spibus.go @@ -36,6 +36,9 @@ type spiIOCTransfer struct { speedHz uint32 delayus uint16 bitsPerWord uint8 + + csChange uint8 + pad uint32 } type spiBus struct {