aboutsummaryrefslogtreecommitdiffstats
path: root/src/linux
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2020-10-25 10:14:15 -0400
committerKevin O'Connor <kevin@koconnor.net>2020-10-25 10:14:15 -0400
commited5ce9cb376cc40f0a4503a6d01ef85b21293424 (patch)
tree7cb7357c2ae3ff5d0acfce50783602507a7822e6 /src/linux
parentc2c79ff98d6f5ff0305d69afbbb72a7113ba6251 (diff)
downloadkutter-ed5ce9cb376cc40f0a4503a6d01ef85b21293424.tar.gz
kutter-ed5ce9cb376cc40f0a4503a6d01ef85b21293424.tar.xz
kutter-ed5ce9cb376cc40f0a4503a6d01ef85b21293424.zip
linux: Fix spi handling with more than one spi device
Reported by @opensource-alt. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/linux')
-rw-r--r--src/linux/spidev.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/linux/spidev.c b/src/linux/spidev.c
index a7733704..1c3574f8 100644
--- a/src/linux/spidev.c
+++ b/src/linux/spidev.c
@@ -57,6 +57,7 @@ spi_open(uint32_t bus, uint32_t dev)
devices[devices_count].bus = bus;
devices[devices_count].dev = dev;
devices[devices_count].fd = fd;
+ devices_count++;
return fd;
}