summaryrefslogtreecommitdiff
path: root/fw/fe310/eos/spi_dev.c
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2021-03-16 02:11:43 +0100
committerUros Majstorovic <majstor@majstor.org>2021-03-16 02:11:43 +0100
commit98941cdc89d93f5387bb98a443f06408321acc8f (patch)
tree46286a0081b1f0c925951bf825fb4769cefadb51 /fw/fe310/eos/spi_dev.c
parentd05eefaf7f10769ddae3840890af6a1e52440238 (diff)
init code cleanup
Diffstat (limited to 'fw/fe310/eos/spi_dev.c')
-rw-r--r--fw/fe310/eos/spi_dev.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fw/fe310/eos/spi_dev.c b/fw/fe310/eos/spi_dev.c
index abb616d..00b1a5b 100644
--- a/fw/fe310/eos/spi_dev.c
+++ b/fw/fe310/eos/spi_dev.c
@@ -37,13 +37,13 @@ int eos_spi_dev_select(unsigned char dev) {
}
switch (dev) {
case EOS_DEV_DISP:
- rv = eos_spi_start(dev, spi_dev_div[dev-1], SPI_CSID_DISP, 0);
+ rv = eos_spi_start(dev, spi_dev_div[dev - 1], SPI_CSID_DISP, 0);
break;
case EOS_DEV_CARD:
- rv = eos_spi_start(dev, spi_dev_div[dev-1], SPI_CSID_CARD, 0);
+ rv = eos_spi_start(dev, spi_dev_div[dev - 1], SPI_CSID_CARD, 0);
break;
case EOS_DEV_CAM:
- rv = eos_spi_start(dev, spi_dev_div[dev-1], SPI_CSID_NONE, SPI_CSPIN_CAM);
+ rv = eos_spi_start(dev, spi_dev_div[dev - 1], SPI_CSID_NONE, SPI_CSPIN_CAM);
break;
}