Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 180885
b: refs/heads/master
c: fa0fcde
h: refs/heads/master
i:
  180883: a7c5937
v: v3
  • Loading branch information
Jassi Brar authored and Grant Likely committed Jan 20, 2010
1 parent bd021bd commit 57e41d0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e6b873c9666015484a01373a4eebc6cfa82e670d
refs/heads/master: fa0fcde66ac3360678360104b24492015e7b852b
7 changes: 4 additions & 3 deletions trunk/drivers/spi/spi_s3c64xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -300,13 +300,14 @@ static inline void enable_cs(struct s3c64xx_spi_driver_data *sdd,
if (sdd->tgl_spi != spi) { /* if last mssg on diff device */
/* Deselect the last toggled device */
cs = sdd->tgl_spi->controller_data;
cs->set_level(spi->mode & SPI_CS_HIGH ? 0 : 1);
cs->set_level(cs->line,
spi->mode & SPI_CS_HIGH ? 0 : 1);
}
sdd->tgl_spi = NULL;
}

cs = spi->controller_data;
cs->set_level(spi->mode & SPI_CS_HIGH ? 1 : 0);
cs->set_level(cs->line, spi->mode & SPI_CS_HIGH ? 1 : 0);
}

static int wait_for_xfer(struct s3c64xx_spi_driver_data *sdd,
Expand Down Expand Up @@ -386,7 +387,7 @@ static inline void disable_cs(struct s3c64xx_spi_driver_data *sdd,
if (sdd->tgl_spi == spi)
sdd->tgl_spi = NULL;

cs->set_level(spi->mode & SPI_CS_HIGH ? 0 : 1);
cs->set_level(cs->line, spi->mode & SPI_CS_HIGH ? 0 : 1);
}

static void s3c64xx_spi_config(struct s3c64xx_spi_driver_data *sdd)
Expand Down

0 comments on commit 57e41d0

Please sign in to comment.