projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4119bd
)
Input: psmouse - remove unneeded '\n' from psmouse.proto parameter
author
Takashi Iwai
<tiwai@suse.de>
Fri, 13 Nov 2009 07:30:52 +0000
(23:30 -0800)
committer
Dmitry Torokhov
<dmitry.torokhov@gmail.com>
Fri, 13 Nov 2009 07:31:58 +0000
(23:31 -0800)
The get parameter function should return a string without a life-feed.
Otherwise you'll see additional empty line in sysfs parameters file.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/mouse/psmouse-base.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/input/mouse/psmouse-base.c
b/drivers/input/mouse/psmouse-base.c
index 690aed90543694e0c4d94cf6e8234bbef228843e..5bd64841bf1c393963f7076676aaa24f6b609387 100644
(file)
--- a/
drivers/input/mouse/psmouse-base.c
+++ b/
drivers/input/mouse/psmouse-base.c
@@
-1673,7
+1673,7
@@
static int psmouse_get_maxproto(char *buffer, struct kernel_param *kp)
{
int type = *((unsigned int *)kp->arg);
- return sprintf(buffer, "%s
\n
", psmouse_protocol_by_type(type)->name);
+ return sprintf(buffer, "%s", psmouse_protocol_by_type(type)->name);
}
static int __init psmouse_init(void)