bitops: collect BIT macros to include/linux/bitops.h
[oweals/u-boot.git] / include / usb / lin_gadget_compat.h
index 4a01585f809427e9d06ed8c50d7fafd97a766f12..d0d71f7c321e4de18b5d1d76bf0ac817e74b13fa 100644 (file)
 #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)]