staging: octeon: remove typedef declaration for cvmx_fau_reg_32
Remove typedef declaration for enum cvmx_fau_reg_32. Also replace its previous uses with new declaration format. Issue found by checkpatch.pl Signed-off-by: Wambui Karuga <wambui.karugax@gmail.com> Acked-by: Julia Lawall <julia.lawall@lip6.fr> Link: https://lore.kernel.org/r/b7216f423d8e06b2ed7ac2df643a9215cd95be32.1570821661.git.wambui.karugax@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
73aef0c9d2
commit
1691741fe3
@ -201,9 +201,9 @@ union cvmx_helper_link_info {
|
|||||||
} s;
|
} s;
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef enum {
|
enum cvmx_fau_reg_32 {
|
||||||
CVMX_FAU_REG_32_START = 0,
|
CVMX_FAU_REG_32_START = 0,
|
||||||
} cvmx_fau_reg_32_t;
|
};
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
CVMX_FAU_OP_SIZE_8 = 0,
|
CVMX_FAU_OP_SIZE_8 = 0,
|
||||||
@ -1178,16 +1178,18 @@ union cvmx_gmxx_rxx_rx_inbnd {
|
|||||||
} s;
|
} s;
|
||||||
};
|
};
|
||||||
|
|
||||||
static inline int32_t cvmx_fau_fetch_and_add32(cvmx_fau_reg_32_t reg,
|
static inline int32_t cvmx_fau_fetch_and_add32(enum cvmx_fau_reg_32 reg,
|
||||||
int32_t value)
|
int32_t value)
|
||||||
{
|
{
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void cvmx_fau_atomic_add32(cvmx_fau_reg_32_t reg, int32_t value)
|
static inline void cvmx_fau_atomic_add32(enum cvmx_fau_reg_32 reg,
|
||||||
|
int32_t value)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
static inline void cvmx_fau_atomic_write32(cvmx_fau_reg_32_t reg, int32_t value)
|
static inline void cvmx_fau_atomic_write32(enum cvmx_fau_reg_32 reg,
|
||||||
|
int32_t value)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
static inline uint64_t cvmx_scratch_read64(uint64_t address)
|
static inline uint64_t cvmx_scratch_read64(uint64_t address)
|
||||||
@ -1364,7 +1366,7 @@ static inline int cvmx_spi_restart_interface(int interface,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static inline void cvmx_fau_async_fetch_and_add32(uint64_t scraddr,
|
static inline void cvmx_fau_async_fetch_and_add32(uint64_t scraddr,
|
||||||
cvmx_fau_reg_32_t reg,
|
enum cvmx_fau_reg_32 reg,
|
||||||
int32_t value)
|
int32_t value)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user