From: Bryan O'Sullivan Date: Wed, 1 Feb 2006 11:05:15 +0000 (-0800) Subject: [PATCH] Define BITS_PER_BYTE X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=f7589f28d7dd4586b4e90ac3b2a180409669053a;p=mv-sheeva.git [PATCH] Define BITS_PER_BYTE This can make the intent behind some arithmetic expressions clearer. Signed-off-by: Bryan O'Sullivan Signed-off-by: Adrian Bunk Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/linux/types.h b/include/linux/types.h index 21b9ce80364..54ae2d59e71 100644 --- a/include/linux/types.h +++ b/include/linux/types.h @@ -8,6 +8,8 @@ (((bits)+BITS_PER_LONG-1)/BITS_PER_LONG) #define DECLARE_BITMAP(name,bits) \ unsigned long name[BITS_TO_LONGS(bits)] + +#define BITS_PER_BYTE 8 #endif #include