Commit addca917 authored by Ivan Vecera's avatar Ivan Vecera Committed by Jakub Kicinski

i40e: Remove _t suffix from enum type names

Enum type names should not be suffixed by '_t'. Either to use
'typedef enum name name_t' to so plain 'name_t var' instead of
'enum name_t var'.
Signed-off-by: default avatarIvan Vecera <ivecera@redhat.com>
Reviewed-by: default avatarJacob Keller <jacob.e.keller@intel.com>
Tested-by: Pucha Himasekhar Reddy <himasekharx.reddy.pucha@intel.com> (A Contingent worker at Intel)
Signed-off-by: default avatarTony Nguyen <anthony.l.nguyen@intel.com>
Link: https://lore.kernel.org/r/20231113231047.548659-6-anthony.l.nguyen@intel.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent e8fcf58f
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
#define I40E_MAX_BW_INACTIVE_ACCUM 4 /* accumulate 4 credits max */ #define I40E_MAX_BW_INACTIVE_ACCUM 4 /* accumulate 4 credits max */
/* driver state flags */ /* driver state flags */
enum i40e_state_t { enum i40e_state {
__I40E_TESTING, __I40E_TESTING,
__I40E_CONFIG_BUSY, __I40E_CONFIG_BUSY,
__I40E_CONFIG_DONE, __I40E_CONFIG_DONE,
...@@ -127,7 +127,7 @@ enum i40e_state_t { ...@@ -127,7 +127,7 @@ enum i40e_state_t {
BIT_ULL(__I40E_PF_RESET_AND_REBUILD_REQUESTED) BIT_ULL(__I40E_PF_RESET_AND_REBUILD_REQUESTED)
/* VSI state flags */ /* VSI state flags */
enum i40e_vsi_state_t { enum i40e_vsi_state {
__I40E_VSI_DOWN, __I40E_VSI_DOWN,
__I40E_VSI_NEEDS_RESTART, __I40E_VSI_NEEDS_RESTART,
__I40E_VSI_SYNCING_FILTERS, __I40E_VSI_SYNCING_FILTERS,
......
...@@ -35,7 +35,7 @@ enum i40e_ptp_pin { ...@@ -35,7 +35,7 @@ enum i40e_ptp_pin {
GPIO_4 GPIO_4
}; };
enum i40e_can_set_pins_t { enum i40e_can_set_pins {
CANT_DO_PINS = -1, CANT_DO_PINS = -1,
CAN_SET_PINS, CAN_SET_PINS,
CAN_DO_PINS CAN_DO_PINS
...@@ -193,7 +193,7 @@ static bool i40e_is_ptp_pin_dev(struct i40e_hw *hw) ...@@ -193,7 +193,7 @@ static bool i40e_is_ptp_pin_dev(struct i40e_hw *hw)
* return CAN_DO_PINS if pins can be manipulated within a NIC or * return CAN_DO_PINS if pins can be manipulated within a NIC or
* return CANT_DO_PINS otherwise. * return CANT_DO_PINS otherwise.
**/ **/
static enum i40e_can_set_pins_t i40e_can_set_pins(struct i40e_pf *pf) static enum i40e_can_set_pins i40e_can_set_pins(struct i40e_pf *pf)
{ {
if (!i40e_is_ptp_pin_dev(&pf->hw)) { if (!i40e_is_ptp_pin_dev(&pf->hw)) {
dev_warn(&pf->pdev->dev, dev_warn(&pf->pdev->dev,
...@@ -1071,7 +1071,7 @@ static void i40e_ptp_set_pins_hw(struct i40e_pf *pf) ...@@ -1071,7 +1071,7 @@ static void i40e_ptp_set_pins_hw(struct i40e_pf *pf)
static int i40e_ptp_set_pins(struct i40e_pf *pf, static int i40e_ptp_set_pins(struct i40e_pf *pf,
struct i40e_ptp_pins_settings *pins) struct i40e_ptp_pins_settings *pins)
{ {
enum i40e_can_set_pins_t pin_caps = i40e_can_set_pins(pf); enum i40e_can_set_pins pin_caps = i40e_can_set_pins(pf);
int i = 0; int i = 0;
if (pin_caps == CANT_DO_PINS) if (pin_caps == CANT_DO_PINS)
......
...@@ -58,7 +58,7 @@ static inline u16 i40e_intrl_usec_to_reg(int intrl) ...@@ -58,7 +58,7 @@ static inline u16 i40e_intrl_usec_to_reg(int intrl)
* mentioning ITR_INDX, ITR_NONE cannot be used as an index 'n' into any * mentioning ITR_INDX, ITR_NONE cannot be used as an index 'n' into any
* register but instead is a special value meaning "don't update" ITR0/1/2. * register but instead is a special value meaning "don't update" ITR0/1/2.
*/ */
enum i40e_dyn_idx_t { enum i40e_dyn_idx {
I40E_IDX_ITR0 = 0, I40E_IDX_ITR0 = 0,
I40E_IDX_ITR1 = 1, I40E_IDX_ITR1 = 1,
I40E_IDX_ITR2 = 2, I40E_IDX_ITR2 = 2,
...@@ -306,7 +306,7 @@ struct i40e_rx_queue_stats { ...@@ -306,7 +306,7 @@ struct i40e_rx_queue_stats {
u64 page_busy_count; u64 page_busy_count;
}; };
enum i40e_ring_state_t { enum i40e_ring_state {
__I40E_TX_FDIR_INIT_DONE, __I40E_TX_FDIR_INIT_DONE,
__I40E_TX_XPS_INIT_DONE, __I40E_TX_XPS_INIT_DONE,
__I40E_RING_STATE_NBITS /* must be last */ __I40E_RING_STATE_NBITS /* must be last */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment