diff options
| author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2011-07-25 20:13:20 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-07-25 23:57:16 -0400 |
| 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) | |||
| 52 | #define tolower(c) __tolower(c) | 52 | #define tolower(c) __tolower(c) |
| 53 | #define toupper(c) __toupper(c) | 53 | #define toupper(c) __toupper(c) |
| 54 | 54 | ||
| 55 | /* | ||
| 56 | * Fast implementation of tolower() for internal usage. Do not use in your | ||
| 57 | * code. | ||
| 58 | */ | ||
| 59 | static inline char _tolower(const char c) | ||
| 60 | { | ||
| 61 | return c | 0x20; | ||
| 62 | } | ||
| 63 | |||
| 55 | #endif | 64 | #endif |
