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.

[[email protected]: coding-style fixes]
Signed-off-by: Andy Shevchenko <[email protected]>
Acked-by: Alexey Dobriyan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
Andy Shevchenko 2011-07-25 17:13:20 -07:00 • committed by Linus Torvalds
commit 75fb8f2693
3 changed files with 19 additions and 18 deletions

View file

@ -19,11 +19,6 @@
#include <linux/types.h>
#include <asm/uaccess.h>
static inline char _tolower(const char c)
{
return c | 0x20;
}
static int _kstrtoull(const char *s, unsigned int base, unsigned long long *res)
{
unsigned long long acc;