1
0
Fork 0
mirror of https://github.com/kidoman/embd synced 2025-07-03 20:07:40 +02:00

spi: use a initializer if required by any host

This commit is contained in:
kunalpowar 2014-05-01 22:44:41 +05:30
parent faa686f01c
commit 42033238e2
4 changed files with 38 additions and 15 deletions

View file

@ -77,7 +77,7 @@ func init() {
return embd.NewLEDDriver(ledMap, generic.NewLED)
},
SPIDriver: func() embd.SPIDriver {
return embd.NewSPIDriver(spiDeviceMinor, generic.NewSPIBus)
return embd.NewSPIDriver(spiDeviceMinor, generic.NewSPIBus, false, nil)
},
}
})