From: Mark Brown Date: Wed, 23 Apr 2014 00:37:43 +0000 (-0700) Subject: Input: ads7846 - correct log message for spi_sync() errors X-Git-Tag: next-20140428~40^2~9 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d0e0939ded3aee2b16c7e1488b3ae4668c9fef0a;p=karo-tx-linux.git Input: ads7846 - correct log message for spi_sync() errors While searching for users of spi_async() I got a false positive in the ads7846 driver, fix that. Signed-off-by: Mark Brown Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/touchscreen/ads7846.c b/drivers/input/touchscreen/ads7846.c index 45a06e495ed2..8c4fdd1f6faa 100644 --- a/drivers/input/touchscreen/ads7846.c +++ b/drivers/input/touchscreen/ads7846.c @@ -706,7 +706,7 @@ static void ads7846_read_state(struct ads7846 *ts) m = &ts->msg[msg_idx]; error = spi_sync(ts->spi, m); if (error) { - dev_err(&ts->spi->dev, "spi_async --> %d\n", error); + dev_err(&ts->spi->dev, "spi_sync --> %d\n", error); packet->tc.ignore = true; return; }