Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 299168
b: refs/heads/master
c: 5039a86
h: refs/heads/master
v: v3
  • Loading branch information
Kenth Eriksson authored and Grant Likely committed Mar 30, 2012
1 parent d06d8b5 commit 84353b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: 9232b9b1b57dc5c01f435433e70e26c122bf4e44
refs/heads/master: 5039a86973cd35bdb2f64d28ee12f13fe2bb5a4c
4 changes: 3 additions & 1 deletion trunk/drivers/spi/spi-fsl-spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,12 @@ static void fsl_spi_change_mode(struct spi_device *spi)
static void fsl_spi_chipselect(struct spi_device *spi, int value)
{
struct mpc8xxx_spi *mpc8xxx_spi = spi_master_get_devdata(spi->master);
struct fsl_spi_platform_data *pdata = spi->dev.parent->platform_data;
struct fsl_spi_platform_data *pdata;
bool pol = spi->mode & SPI_CS_HIGH;
struct spi_mpc8xxx_cs *cs = spi->controller_state;

pdata = spi->dev.parent->parent->platform_data;

if (value == BITBANG_CS_INACTIVE) {
if (pdata->cs_control)
pdata->cs_control(spi, !pol);
Expand Down

0 comments on commit 84353b8

Please sign in to comment.