Move ENOTSUPP defines to include/linux/errno.h
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 21 Sep 2016 02:28:59 +0000 (11:28 +0900)
committerTom Rini <trini@konsulko.com>
Sat, 24 Sep 2016 02:25:43 +0000 (22:25 -0400)
Collect a couple of duplicated defines into a single place.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
drivers/usb/gadget/rndis.c
include/linux/compat.h
include/linux/errno.h
include/usb/lin_gadget_compat.h

index 42510a0..844a0c7 100644 (file)
@@ -41,8 +41,6 @@
 #define ETH_ZLEN       60              /* Min. octets in frame sans FCS */
 #define ETH_DATA_LEN   1500            /* Max. octets in payload        */
 #define ETH_FRAME_LEN  PKTSIZE_ALIGN   /* Max. octets in frame sans FCS */
-#define ENOTSUPP        524     /* Operation is not supported */
-
 
 /*
  * The driver for your USB chip needs to support ep0 OUT to work with
index 7236b8d..c7fd649 100644 (file)
@@ -151,8 +151,6 @@ typedef unsigned long sector_t;
 typedef unsigned long blkcnt_t;
 #endif
 
-#define ENOTSUPP       524     /* Operation is not supported */
-
 /* module */
 #define THIS_MODULE            0
 #define try_module_get(...)    1
index 1a7a0b9..f3461b4 100644 (file)
 #define        ENOMEDIUM       123     /* No medium found */
 #define        EMEDIUMTYPE     124     /* Wrong medium type */
 
+#define ENOTSUPP       524     /* Operation is not supported */
+
 #endif
index 29fb166..4a01585 100644 (file)
@@ -13,8 +13,6 @@
 #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))