Skip to content

Commit

Permalink
staging: csr: remove csr_utf16.c
Browse files Browse the repository at this point in the history
Only one function was being used in the file, so move it to where it was
being called and delete the rest of the file, and csr_unicode.h as it's
no longer needed as well.

Cc: Mikko Virkkilä <mikko.virkkila@bluegiga.com>
Cc: Lauri Hintsala <Lauri.Hintsala@bluegiga.com>
Cc: Riku Mettälä <riku.mettala@bluegiga.com>
Cc: Veli-Pekka Peltola <veli-pekka.peltola@bluegiga.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Greg Kroah-Hartman committed Jul 21, 2012
1 parent eaae2e9 commit 9e16d45
Show file tree
Hide file tree
Showing 10 changed files with 28 additions and 1,155 deletions.
1 change: 0 additions & 1 deletion drivers/staging/csr/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,5 @@ csr_helper-y := csr_time.o \
csr_framework_ext.o \
csr_wifi_serialize_primitive_types.o \
csr_serialize_primitive_types.o \
csr_utf16.o \
csr_msgconv.o \
csr_panic.o
1 change: 0 additions & 1 deletion drivers/staging/csr/csr_msgconv.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#include <linux/types.h>
#include "csr_prim_defs.h"
#include "csr_sched.h"
#include "csr_unicode.h"

#ifdef __cplusplus
extern "C" {
Expand Down
28 changes: 28 additions & 0 deletions drivers/staging/csr/csr_serialize_primitive_types.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,34 @@
#include "csr_macro.h"
#include "csr_lib.h"

/********************************************************************************
*
* Name: CsrUtf16StrLen
*
* Description: The function returns the number of 16 bit elements present
* in the 0-terminated string.
*
* Input: 0-terminated string of 16 bit unicoded characters.
*
* Output: The number of 16 bit elements in the string.
*
*********************************************************************************/
static u32 CsrUtf16StrLen(const u16 *unicodeString)
{
u32 length;

length = 0;
if (unicodeString != NULL)
{
while (*unicodeString)
{
length++;
unicodeString++;
}
}
return length;
}

void CsrUint8Des(u8 *value, u8 *buffer, size_t *offset)
{
*value = buffer[*offset];
Expand Down
87 changes: 0 additions & 87 deletions drivers/staging/csr/csr_unicode.h

This file was deleted.

Loading

0 comments on commit 9e16d45

Please sign in to comment.