diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-07-20 15:40:30 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-07-20 15:40:30 -0400 |
commit | b6b5244e4f1ccf838cce8499732449f26c119b88 (patch) | |
tree | 93dc95dcfe2560cbf9ede5ed8ec85634a9926b1a | |
parent | 3c0b461e4c8fde467bd803e368d9a78ec2da5f8a (diff) |
staging: csr: remove CsrUint64 and CsrInt64 typedefs.
CsrInt64 wasn't being used, and CsrUint64 was only used in one place, so
replace that with u64.
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>
-rw-r--r-- | drivers/staging/csr/csr_time.c | 8 | ||||
-rw-r--r-- | drivers/staging/csr/csr_types.h | 13 |
2 files changed, 4 insertions, 17 deletions
diff --git a/drivers/staging/csr/csr_time.c b/drivers/staging/csr/csr_time.c index 1ef61e3efac6..9e5aa9002b66 100644 --- a/drivers/staging/csr/csr_time.c +++ b/drivers/staging/csr/csr_time.c | |||
@@ -26,11 +26,11 @@ | |||
26 | CsrTime CsrTimeGet(CsrTime *high) | 26 | CsrTime CsrTimeGet(CsrTime *high) |
27 | { | 27 | { |
28 | struct timespec ts; | 28 | struct timespec ts; |
29 | CsrUint64 time; | 29 | u64 time; |
30 | CsrTime low; | 30 | CsrTime low; |
31 | 31 | ||
32 | ts = current_kernel_time(); | 32 | ts = current_kernel_time(); |
33 | time = (CsrUint64) ts.tv_sec * 1000000 + ts.tv_nsec / 1000; | 33 | time = (u64) ts.tv_sec * 1000000 + ts.tv_nsec / 1000; |
34 | 34 | ||
35 | if (high != NULL) | 35 | if (high != NULL) |
36 | { | 36 | { |
@@ -46,10 +46,10 @@ EXPORT_SYMBOL_GPL(CsrTimeGet); | |||
46 | void CsrTimeUtcGet(CsrTimeUtc *tod, CsrTime *low, CsrTime *high) | 46 | void CsrTimeUtcGet(CsrTimeUtc *tod, CsrTime *low, CsrTime *high) |
47 | { | 47 | { |
48 | struct timespec ts; | 48 | struct timespec ts; |
49 | CsrUint64 time; | 49 | u64 time; |
50 | 50 | ||
51 | ts = current_kernel_time(); | 51 | ts = current_kernel_time(); |
52 | time = (CsrUint64) ts.tv_sec * 1000000 + ts.tv_nsec / 1000; | 52 | time = (u64) ts.tv_sec * 1000000 + ts.tv_nsec / 1000; |
53 | 53 | ||
54 | if (high != NULL) | 54 | if (high != NULL) |
55 | { | 55 | { |
diff --git a/drivers/staging/csr/csr_types.h b/drivers/staging/csr/csr_types.h index 76f95615033e..7018c0a708d2 100644 --- a/drivers/staging/csr/csr_types.h +++ b/drivers/staging/csr/csr_types.h | |||
@@ -26,19 +26,6 @@ extern "C" { | |||
26 | #undef TRUE | 26 | #undef TRUE |
27 | #define TRUE (1) | 27 | #define TRUE (1) |
28 | 28 | ||
29 | /* | ||
30 | * 64-bit integers | ||
31 | * | ||
32 | * Note: If a given compiler does not support 64-bit types, it is | ||
33 | * OK to omit these definitions; 32-bit versions of the code using | ||
34 | * these types may be available. Consult the relevant documentation | ||
35 | * or the customer support group for information on this. | ||
36 | */ | ||
37 | #define CSR_HAVE_64_BIT_INTEGERS | ||
38 | typedef uint64_t CsrUint64; | ||
39 | typedef int64_t CsrInt64; | ||
40 | |||
41 | |||
42 | #ifdef __cplusplus | 29 | #ifdef __cplusplus |
43 | } | 30 | } |
44 | #endif | 31 | #endif |