]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ice: Cleanup defines in ice_type.h
authorTony Nguyen <anthony.l.nguyen@intel.com>
Fri, 2 Aug 2019 08:25:33 +0000 (01:25 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 3 Sep 2019 23:32:30 +0000 (16:32 -0700)
Conventionally, if the #defines/other are not needed by other header
files being included, #includes are done first followed by #defines
and other stuff. Move the #defines before the #includes to follow this
convention.

Suggested by: Bruce Allan <bruce.w.allan@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ice/ice_type.h

index b538d0b9eb80492291295b7da02813dfe4314a67..40b028e73234ee12a88398415c5b001a3ea70d47 100644 (file)
@@ -4,15 +4,15 @@
 #ifndef _ICE_TYPE_H_
 #define _ICE_TYPE_H_
 
+#define ICE_BYTES_PER_WORD     2
+#define ICE_BYTES_PER_DWORD    4
+
 #include "ice_status.h"
 #include "ice_hw_autogen.h"
 #include "ice_osdep.h"
 #include "ice_controlq.h"
 #include "ice_lan_tx_rx.h"
 
-#define ICE_BYTES_PER_WORD     2
-#define ICE_BYTES_PER_DWORD    4
-
 static inline bool ice_is_tc_ena(unsigned long bitmap, u8 tc)
 {
        return test_bit(tc, &bitmap);