From: Imre Deak Date: Fri, 10 Feb 2006 14:59:11 +0000 (+0200) Subject: ads7846: use spi_message_init instead of LIST_HEAD_INIT X-Git-Tag: v2.6.16-omap1~71 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=a15dc263321385e8bfb9acb3c2e5dc5e622401b3;p=linux-2.6-omap-h63xx.git ads7846: use spi_message_init instead of LIST_HEAD_INIT SPI messages should be manipulated only with the SPI API. Signed-off-by: Imre Deak Signed-off-by: Juha Yrjölä --- diff --git a/drivers/input/touchscreen/ads7846.c b/drivers/input/touchscreen/ads7846.c index 8c12a974b41..f157be23611 100644 --- a/drivers/input/touchscreen/ads7846.c +++ b/drivers/input/touchscreen/ads7846.c @@ -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) */