aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/winbond
diff options
context:
space:
mode:
authorPekka Enberg <penberg@cs.helsinki.fi>2008-10-29 20:11:13 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2009-01-06 13:51:46 -0800
commit4460a0b4d5d9e0b5695365a1a5815e0f4981e01e (patch)
tree2607888aa0d65b47d2955fd89ba2fe07cb8b41cd /drivers/staging/winbond
parentStaging: w35und: remove memcpy/memcmp wrappers (diff)
downloadlinux-dev-4460a0b4d5d9e0b5695365a1a5815e0f4981e01e.tar.xz
linux-dev-4460a0b4d5d9e0b5695365a1a5815e0f4981e01e.zip
Staging: w35und: remove abs() and BIT() macros
We can use the kernel built-in abs() and BIT() macros the just fine. Acked-by: Pavel Machek <pavel@suse.cz> Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/winbond')
-rw-r--r--drivers/staging/winbond/linux/common.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/staging/winbond/linux/common.h b/drivers/staging/winbond/linux/common.h
index 046dab6b7bff..f171b881d956 100644
--- a/drivers/staging/winbond/linux/common.h
+++ b/drivers/staging/winbond/linux/common.h
@@ -48,16 +48,9 @@
#define STATUS_MEDIA_CONNECT 1
#define STATUS_MEDIA_DISCONNECT 0
-#ifndef BIT
-#define BIT(x) (1 << (x))
-#endif
-
//==================================================================================================
// Common function definition
//==================================================================================================
-#ifndef abs
-#define abs(_T) ((_T) < 0 ? -_T : _T)
-#endif
#define DEBUG_ENABLED
#define ETH_LENGTH_OF_ADDRESS 6
#ifdef DEBUG_ENABLED