]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
ads7846: use spi_message_init instead of LIST_HEAD_INIT
authorImre Deak <imre.deak@nokia.com>
Fri, 10 Feb 2006 14:59:11 +0000 (16:59 +0200)
committerJuha Yrjola <juha.yrjola@nokia.com>
Fri, 10 Feb 2006 14:59:11 +0000 (16:59 +0200)
SPI messages should be manipulated only with the SPI API.

Signed-off-by: Imre Deak <imre.deak@nokia.com>
Signed-off-by: Juha Yrjölä <juha.yrjola@nokia.com>
drivers/input/touchscreen/ads7846.c

index 8c12a974b411a75093c2f65319b4c88761bc5dd7..f157be23611fdaf4d202b8d2b02f700a3ba8a045 100644 (file)
@@ -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) */