Skip to contentSkip to conversation

Input: ads7846: Correct log message for spi_sync() errors

PATCH Applied Mark Brown 2 participants 2 messages Apr 22, 2014 – Apr 23, 2014

Subsystems (2)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 Input: ads7846: Correct log message for spi_sync() errors

From: Mark Brown <[email protected]>

While searching for users of spi_async() I got a false positive in the ads7846 driver, fix that.

---
 drivers/input/touchscreen/ads7846.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/input/touchscreen/ads7846.c +1 -1
index 7f8aa981500d..da201b8e37dc 100644
@@ -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;
 		}
Signature · 1 line
1.9.2
maintainer Applied
#1 lore raw
Quoted 6 lines · Mark Brown

From: Mark Brown <[email protected]>

While searching for users of spi_async() I got a false positive in the ads7846 driver, fix that.

Applied, thank you.

Quoted 21 lines
---
 drivers/input/touchscreen/ads7846.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/input/touchscreen/ads7846.c +1 -1
index 7f8aa981500d..da201b8e37dc 100644
@@ -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;
 		}
Signature · 1 line
1.9.2
Signature · 1 line
Dmitry