Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 318176
b: refs/heads/master
c: ed51b4d
h: refs/heads/master
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Jul 20, 2012
1 parent 27e4f68 commit a7ecb06
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 24 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 25aebdb1bb13bbab2d620ae48e3ea3184a8fdac5
refs/heads/master: ed51b4d84e7a11813bf09c5db41cedec18a69d50
18 changes: 0 additions & 18 deletions trunk/drivers/staging/csr/csr_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,6 @@
#include "csr_pmem.h"
#include "csr_util.h"

/*------------------------------------------------------------------*/
/* Base conversion */
/*------------------------------------------------------------------*/
/* Convert signed 32 bit (or less) integer to string */
void CsrUInt16ToHex(u16 number, char *str)
{
u16 index;
u16 currentValue;

for (index = 0; index < 4; index++)
{
currentValue = (u16) (number & 0x000F);
number >>= 4;
str[3 - index] = (char) (currentValue > 9 ? currentValue + 55 : currentValue + '0');
}
str[4] = '\0';
}

MODULE_DESCRIPTION("CSR Operating System Kernel Abstraction");
MODULE_AUTHOR("Cambridge Silicon Radio Ltd.");
MODULE_LICENSE("GPL and additional rights");
5 changes: 0 additions & 5 deletions trunk/drivers/staging/csr/csr_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ extern "C" {
#include <linux/types.h>
#include "csr_macro.h"

/*------------------------------------------------------------------*/
/* Base conversion */
/*------------------------------------------------------------------*/
void CsrUInt16ToHex(u16 number, char *str);

#define CsrOffsetOf(st, m) ((size_t) & ((st *) 0)->m)

#ifdef __cplusplus
Expand Down
16 changes: 16 additions & 0 deletions trunk/drivers/staging/csr/csr_wifi_hip_card_sdio_intr.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,22 @@ void unifi_debug_log_to_buf(const char *fmt, ...)
} /* unifi_debug_log_to_buf() */


/* Convert signed 32 bit (or less) integer to string */
static void CsrUInt16ToHex(u16 number, char *str)
{
u16 index;
u16 currentValue;

for (index = 0; index < 4; index++)
{
currentValue = (u16) (number & 0x000F);
number >>= 4;
str[3 - index] = (char) (currentValue > 9 ? currentValue + 55 : currentValue + '0');
}
str[4] = '\0';
}


/*
* ---------------------------------------------------------------------------
* unifi_debug_hex_to_buf
Expand Down

0 comments on commit a7ecb06

Please sign in to comment.