Commit a15dc263 authored by Imre Deak's avatar Imre Deak Committed by Juha Yrjola

ads7846: use spi_message_init instead of LIST_HEAD_INIT

SPI messages should be manipulated only with the SPI API.
Signed-off-by: default avatarImre Deak <imre.deak@nokia.com>
Signed-off-by: default avatarJuha Yrjl <juha.yrjola@nokia.com>
parent be045691
......@@ -163,7 +163,7 @@ static int ads7846_read12_ser(struct device *dev, unsigned command)
if (!req)
return -ENOMEM;
INIT_LIST_HEAD(&req->msg.transfers);
spi_message_init(&req->msg);
/* activate reference, so it has time to settle; */
req->ref_on = REF_ON;
......@@ -476,7 +476,7 @@ static int __devinit ads7846_probe(struct spi_device *spi)
/* set up the transfers to read touchscreen state; this assumes we
* use formula #2 for pressure, not #3.
*/
INIT_LIST_HEAD(&ts->msg.transfers);
spi_message_init(&ts->msg);
x = ts->xfer;
/* y- still on; turn on only y+ (and ADC) */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment