Skip to content
Commit 81310769 authored by Tristan Honscheid's avatar Tristan Honscheid Committed by Carles Cufí
Browse files

emul: spi: SPI_EMUL_INIT(n) hard-coded to instance #0



The `SPI_EMUL_INIT(n)` macro used to instantiate SPI bus emulators
builds an array of SPI devices attached to the bus, but always checks
instance #0 of the bus and not `n`. This makes multiple instances of an
emulated SPI bus unusable and popualtes them all with bus 0's devices.

Change the `0` to `n`, which matches how the I2C bus emulator does it.

Signed-off-by: default avatarTristan Honscheid <honscheid@google.com>
parent 3a10923b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment