diff options
| author | Tom Rini <[email protected]> | 2017-11-28 16:54:09 -0500 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2017-11-28 16:54:09 -0500 |
| commit | 74a4818415852560b43ee990ce47c68582bef4ca (patch) | |
| tree | feedbc26cb649c64301d810fd163ce7af0e77d7c /include/usb | |
| parent | 65972a0b6204aa298b70b7ebd755bb1ce1ed53ee (diff) | |
| parent | a27bcbf81563880a1cfc805625dc57dbde658e1d (diff) | |
Merge git://git.denx.de/u-boot-uniphier
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)] |
