]> git.sur5r.net Git - u-boot/blobdiff - include/usb/lin_gadget_compat.h
SPDX: Convert all of our single license tags to Linux Kernel style
[u-boot] / include / usb / lin_gadget_compat.h
index 29fb166934c8d5d71e09d080665ed555910fe7da..e5dba473b7ac144882707544c35682bf6d600a8e 100644 (file)
@@ -1,23 +1,18 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
 /*
  * Copyright (c) 2011 Samsung Electronics
  * Lukasz Majewski <l.majewski@samsung.com>
  *
  * This is a Linux kernel compatibility layer for USB Gadget
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #ifndef __LIN_COMPAT_H__
 #define __LIN_COMPAT_H__
 
+#include <linux/bitops.h>
 #include <linux/compat.h>
 
 /* common */
-#define ENOTSUPP       524     /* Operation is not supported */
-
-#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)]