diff options
author | Andy Shevchenko | 2011-07-25 17:13:20 -0700 |
---|---|---|
committer | Linus Torvalds | 2011-07-25 20:57:16 -0700 |
commit | 75fb8f269305fc066c4c6ec6e7232df0c92f434d (patch) | |
tree | be2f806f817368cb52270baee3f1d77005e3ca8a /include/linux | |
parent | 72d39508e43689b9346dfc956fad5e94a8911886 (diff) |
lib: make _tolower() public
This function is required by *printf and kstrto* functions that are
located in the different modules. This patch makes _tolower() public.
However, it's good idea to not use the helper outside of mentioned
functions.
[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/ctype.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/ctype.h b/include/linux/ctype.h index a3d6ee0044f9..8acfe312f947 100644 --- a/include/linux/ctype.h +++ b/include/linux/ctype.h @@ -52,4 +52,13 @@ static inline unsigned char __toupper(unsigned char c) #define tolower(c) __tolower(c) #define toupper(c) __toupper(c) +/* + * Fast implementation of tolower() for internal usage. Do not use in your + * code. + */ +static inline char _tolower(const char c) +{ + return c | 0x20; +} + #endif |