summaryrefslogtreecommitdiffstats
path: root/drivers/input/touchscreen/ads7846.c
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2014-04-23 02:37:43 +0200
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2014-05-15 01:39:45 +0200
commitc898620869dd061e69f84e69759e4d6ea7fae79c (patch)
tree0301e7656a41da6bb18a95f03494b880ead4e8a5 /drivers/input/touchscreen/ads7846.c
parentInput: tc3589x-keypad - support probing from device tree (diff)
downloadlinux-c898620869dd061e69f84e69759e4d6ea7fae79c.tar.xz
linux-c898620869dd061e69f84e69759e4d6ea7fae79c.zip
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 <broonie@linaro.org> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/touchscreen/ads7846.c')
-rw-r--r--drivers/input/touchscreen/ads7846.c2
1 files changed, 1 insertions, 1 deletions
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;
}