From a15dc263321385e8bfb9acb3c2e5dc5e622401b3 Mon Sep 17 00:00:00 2001 From: Imre Deak Date: Fri, 10 Feb 2006 16:59:11 +0200 Subject: [PATCH] ads7846: use spi_message_init instead of LIST_HEAD_INIT MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit SPI messages should be manipulated only with the SPI API. Signed-off-by: Imre Deak Signed-off-by: Juha Yrjölä --- drivers/input/touchscreen/ads7846.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) */ -- 2.41.1