From: Vladimir Shebordaev <vladimir.shebordaev@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: Vladimir Shebordaev <vshebordaev@mail.ru>
Subject: [PATCH] [input] USB touchscreen
Date: Fri, 7 Sep 2007 02:14:14 +0400 [thread overview]
Message-ID: <1189116854924-git-send-email-vladimir.shebordaev@gmail.com> (raw)
From: Vladimir Shebordaev <vshebordaev@mail.ru>
This patch fixes a nasty typo in usbtouchscreen driver.
The typo is inherited from the original mtouchusb. It
used to make the input subsytem to incorrectly
report the physical device ids to userspace that in turn
is much confusing for, e.g. XInput hotplug facilities in
setups with multiple identical touchscreens.
Signed-off-by: Vladimir Shebordaev <vladimir.shebordaev@gmail.com>
---
drivers/input/touchscreen/usbtouchscreen.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/input/touchscreen/usbtouchscreen.c b/drivers/input/touchscreen/usbtouchscreen.c
index e3f2285..c32f447 100644
--- a/drivers/input/touchscreen/usbtouchscreen.c
+++ b/drivers/input/touchscreen/usbtouchscreen.c
@@ -734,7 +734,7 @@ static int usbtouch_probe(struct usb_interface *intf,
le16_to_cpu(udev->descriptor.idProduct));
usb_make_path(udev, usbtouch->phys, sizeof(usbtouch->phys));
- strlcpy(usbtouch->phys, "/input0", sizeof(usbtouch->phys));
+ strlcat(usbtouch->phys, "/input0", sizeof(usbtouch->phys));
input_dev->name = usbtouch->name;
input_dev->phys = usbtouch->phys;
--
1.5.2.2
next reply other threads:[~2007-09-06 22:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-06 22:14 Vladimir Shebordaev [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-09-06 22:03 [PATCH] [input] USB touchscreen Vladimir Shebordaev
2007-09-06 22:01 Vladimir Shebordaev
2007-09-06 21:29 Vladimir Shebordaev
2007-09-07 1:34 ` Dmitry Torokhov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1189116854924-git-send-email-vladimir.shebordaev@gmail.com \
--to=vladimir.shebordaev@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=vshebordaev@mail.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox