Skip to content

Commit

Permalink
backlight: tdo24m: ensure chip select changes between transfers
Browse files Browse the repository at this point in the history
Some SPI host drivers do not change chip select betwen transfers unless
.cs_chnage field is explicitly set. The LCD spec requires chip select
change between consecuitive transfers, so ensure it at the SPI driver
level.

Signed-off-by: Mike Rapoport <mike@compulab.co.il>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
  • Loading branch information
Mike Rapoport authored and Eric Miao committed Dec 1, 2009
1 parent fa3f993 commit f64dcac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/video/backlight/tdo24m.c
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ static int __devinit tdo24m_probe(struct spi_device *spi)

spi_message_init(m);

x->cs_change = 1;
x->tx_buf = &lcd->buf[0];
spi_message_add_tail(x, m);

Expand Down

0 comments on commit f64dcac

Please sign in to comment.