diff options
| author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-03-23 23:44:19 -0500 |
|---|---|---|
| committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-03-23 23:44:19 -0500 |
| commit | 1ebbe2b20091d306453a5cf480a87e6cd28ae76f (patch) | |
| tree | f5cd7a0fa69b8b1938cb5a0faed2e7b0628072a5 /arch/powerpc/lib/e2a.c | |
| parent | ac58c9059da8886b5e8cde012a80266b18ca146e (diff) | |
| parent | 674a396c6d2ba0341ebdd7c1c9950f32f018e2dd (diff) | |
Merge branch 'linus'
Diffstat (limited to 'arch/powerpc/lib/e2a.c')
| -rw-r--r-- | arch/powerpc/lib/e2a.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/arch/powerpc/lib/e2a.c b/arch/powerpc/lib/e2a.c index d2b834887920..4b72ed8fd50e 100644 --- a/arch/powerpc/lib/e2a.c +++ b/arch/powerpc/lib/e2a.c | |||
| @@ -1,9 +1,7 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * arch/ppc64/lib/e2a.c | ||
| 3 | * | ||
| 4 | * EBCDIC to ASCII conversion | 2 | * EBCDIC to ASCII conversion |
| 5 | * | 3 | * |
| 6 | * This function moved here from arch/ppc64/kernel/viopath.c | 4 | * This function moved here from arch/powerpc/platforms/iseries/viopath.c |
| 7 | * | 5 | * |
| 8 | * (C) Copyright 2000-2004 IBM Corporation | 6 | * (C) Copyright 2000-2004 IBM Corporation |
| 9 | * | 7 | * |
| @@ -105,4 +103,14 @@ unsigned char e2a(unsigned char x) | |||
| 105 | } | 103 | } |
| 106 | EXPORT_SYMBOL(e2a); | 104 | EXPORT_SYMBOL(e2a); |
| 107 | 105 | ||
| 106 | unsigned char* strne2a(unsigned char *dest, const unsigned char *src, size_t n) | ||
| 107 | { | ||
| 108 | int i; | ||
| 109 | |||
| 110 | n = strnlen(src, n); | ||
| 108 | 111 | ||
| 112 | for (i = 0; i < n; i++) | ||
| 113 | dest[i] = e2a(src[i]); | ||
| 114 | |||
| 115 | return dest; | ||
| 116 | } | ||
