summaryrefslogtreecommitdiff
path: root/include/usb
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2017-11-28 16:54:09 -0500
committerTom Rini <[email protected]>2017-11-28 16:54:09 -0500
commit74a4818415852560b43ee990ce47c68582bef4ca (patch)
treefeedbc26cb649c64301d810fd163ce7af0e77d7c /include/usb
parent65972a0b6204aa298b70b7ebd755bb1ce1ed53ee (diff)
parenta27bcbf81563880a1cfc805625dc57dbde658e1d (diff)
Merge git://git.denx.de/u-boot-uniphier
Diffstat (limited to 'include/usb')
-rw-r--r--include/usb/lin_gadget_compat.h4
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)]