OSDN Git Service

s390/net: move pnet constants
authorUrsula Braun <ubraun@linux.ibm.com>
Thu, 7 Feb 2019 14:56:14 +0000 (15:56 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Feb 2019 02:06:18 +0000 (18:06 -0800)
There is no need to define these PNETID related constants in
the pnet.h file, since they are just used locally within pnet.c.
Just code cleanup, no functional change.

Signed-off-by: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/s390/include/asm/pnet.h
arch/s390/net/pnet.c

index 6e27858..5739276 100644 (file)
 #include <linux/device.h>
 #include <linux/types.h>
 
-#define PNETIDS_LEN            64      /* Total utility string length in bytes
-                                        * to cover up to 4 PNETIDs of 16 bytes
-                                        * for up to 4 device ports
-                                        */
-#define MAX_PNETID_LEN         16      /* Max.length of a single port PNETID */
-#define MAX_PNETID_PORTS       (PNETIDS_LEN / MAX_PNETID_LEN)
-                                       /* Max. # of ports with a PNETID */
-
 int pnet_id_by_dev_port(struct device *dev, unsigned short port, u8 *pnetid);
 #endif /* _ASM_S390_PNET_H */
index e22f1b1..9ecdbdf 100644 (file)
 #include <asm/ccwdev.h>
 #include <asm/pnet.h>
 
+#define PNETIDS_LEN            64      /* Total utility string length in bytes
+                                        * to cover up to 4 PNETIDs of 16 bytes
+                                        * for up to 4 device ports
+                                        */
+#define MAX_PNETID_LEN         16      /* Max.length of a single port PNETID */
+#define MAX_PNETID_PORTS       (PNETIDS_LEN / MAX_PNETID_LEN)
+                                       /* Max. # of ports with a PNETID */
+
 /*
  * Get the PNETIDs from a device.
  * s390 hardware supports the definition of a so-called Physical Network