Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6a025730 authored by Tony Nguyen's avatar Tony Nguyen Committed by Jeff Kirsher
Browse files

ice: Cleanup defines in ice_type.h



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: default avatarTony Nguyen <anthony.l.nguyen@intel.com>
Tested-by: default avatarAndrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent 2e0ab37c
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -4,15 +4,15 @@
#ifndef _ICE_TYPE_H_
#ifndef _ICE_TYPE_H_
#define _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_status.h"
#include "ice_hw_autogen.h"
#include "ice_hw_autogen.h"
#include "ice_osdep.h"
#include "ice_osdep.h"
#include "ice_controlq.h"
#include "ice_controlq.h"
#include "ice_lan_tx_rx.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)
static inline bool ice_is_tc_ena(unsigned long bitmap, u8 tc)
{
{
	return test_bit(tc, &bitmap);
	return test_bit(tc, &bitmap);