Input: aiptek - tolerate newlines in sysfs files

Now echo "some value" > /sys/......./somefile is also acceptable.

Signed-off-by: Rene van Paassen <rene.vanpaassen@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
diff --git a/drivers/input/tablet/aiptek.c b/drivers/input/tablet/aiptek.c
index 0c78dc4..54c8d6f 100644
--- a/drivers/input/tablet/aiptek.c
+++ b/drivers/input/tablet/aiptek.c
@@ -375,8 +375,11 @@
 {
 	const struct aiptek_map *p;
 
+	if (str[count - 1] == '\n')
+		count--;
+
 	for (p = map; p->string; p++)
-		if (!strncmp(str, p->string, count))
+	        if (!strncmp(str, p->string, count))
 			return p->value;
 
 	return AIPTEK_INVALID_VALUE;