Skip to content

Commit

Permalink
add csChange, pad fields to spiIOCTransfer struct
Browse files Browse the repository at this point in the history
Per the discussion in kidoman#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 kidoman#38. Fixes kidoman#24.
  • Loading branch information
bgentry committed Oct 6, 2015
1 parent 5065e49 commit 0e6096e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions host/generic/spibus.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ type spiIOCTransfer struct {
speedHz uint32
delayus uint16
bitsPerWord uint8

csChange uint8
pad uint32
}

type spiBus struct {
Expand Down

0 comments on commit 0e6096e

Please sign in to comment.