diff options
| author | Masahiro Yamada <[email protected]> | 2017-11-22 02:38:11 +0900 |
|---|---|---|
| committer | Masahiro Yamada <[email protected]> | 2017-11-29 00:28:57 +0900 |
| commit | ed3986ca30972c94f0076f88c948406ce030a05c (patch) | |
| tree | a05abe7380bca8e5b3fa77c74e55c5de1b011bae /include/usb | |
| parent | ab5502bf561b2cf250cec9d864585be54e9067b7 (diff) | |
bitops: collect BIT macros to include/linux/bitops.h
Same macros are defined in various places. Collect them into
include/linux/bitops.h like Linux.
Signed-off-by: Masahiro Yamada <[email protected]>
Diffstat (limited to 'include/usb')
| -rw-r--r-- | include/usb/lin_gadget_compat.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/usb/lin_gadget_compat.h b/include/usb/lin_gadget_compat.h index 4a01585f809..d0d71f7c321 100644 --- a/include/usb/lin_gadget_compat.h +++ b/include/usb/lin_gadget_compat.h @@ -10,12 +10,10 @@ #ifndef __LIN_COMPAT_H__ #define __LIN_COMPAT_H__ +#include <linux/bitops.h> #include <linux/compat.h> /* common */ -#define BITS_PER_BYTE 8 -#define BITS_TO_LONGS(nr) \ - DIV_ROUND_UP(nr, BITS_PER_BYTE * sizeof(long)) #define DECLARE_BITMAP(name, bits) \ unsigned long name[BITS_TO_LONGS(bits)] |
