summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d19d9be)
raw | patch | inline | side by side (parent: d19d9be)
author | Rasmus Villemoes <linux@rasmusvillemoes.dk> | |
Mon, 13 Oct 2014 22:54:48 +0000 (15:54 -0700) | ||
committer | Praneeth Bajjuri <praneeth@ti.com> | |
Tue, 24 Nov 2015 23:19:23 +0000 (17:19 -0600) |
The kernel used to contain two functions for length-delimited,
case-insensitive string comparison, strnicmp with correct semantics and
a slightly buggy strncasecmp. The latter is the POSIX name, so strnicmp
was renamed to strncasecmp, and strnicmp made into a wrapper for the new
strncasecmp to avoid breaking existing users.
To allow the compat wrapper strnicmp to be removed at some point in the
future, and to avoid the extra indirection cost, do
s/strnicmp/strncasecmp/g.
Change-Id: Ib2be03dbea60bd74a9751e6d1ba59a76df50863b
Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
case-insensitive string comparison, strnicmp with correct semantics and
a slightly buggy strncasecmp. The latter is the POSIX name, so strnicmp
was renamed to strncasecmp, and strnicmp made into a wrapper for the new
strncasecmp to avoid breaking existing users.
To allow the compat wrapper strnicmp to be removed at some point in the
future, and to avoid the extra indirection cost, do
s/strnicmp/strncasecmp/g.
Change-Id: Ib2be03dbea60bd74a9751e6d1ba59a76df50863b
Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/input/touchscreen/edt-ft5x06.c | patch | blob | history |
index 7a70335d974b0824916964004f9c1fe23b2f09e6..bcbf688da5a1cd8ef0ec36144ac6fd7c94bef248 100644 (file)
/* if we find something consistent, stay with that assumption
* at least M09 won't send 3 bytes here
*/
- if (!(strnicmp(rdbuf + 1, "EP0", 3))) {
+ if (!(strncasecmp(rdbuf + 1, "EP0", 3))) {
tsdata->version = M06;
/* remove last '$' end marker */