Commit 3e93e354 authored by Ioana Ciornei's avatar Ioana Ciornei Committed by Greg Kroah-Hartman

staging: fsl-mc: cleanup: convert uintX_t types to uX

Replace all uses of uintX_t types with uX types in order to comply with
kernel coding style and resolve checkpatch warnings.
Signed-off-by: default avatarIoana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: default avatarStuart Yoder <stuart.yoder@nxp.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent dffeacd9
...@@ -39,16 +39,16 @@ ...@@ -39,16 +39,16 @@
struct fsl_mc_io; struct fsl_mc_io;
int dpmcp_open(struct fsl_mc_io *mc_io, int dpmcp_open(struct fsl_mc_io *mc_io,
uint32_t cmd_flags, u32 cmd_flags,
int dpmcp_id, int dpmcp_id,
uint16_t *token); u16 *token);
/* Get portal ID from pool */ /* Get portal ID from pool */
#define DPMCP_GET_PORTAL_ID_FROM_POOL (-1) #define DPMCP_GET_PORTAL_ID_FROM_POOL (-1)
int dpmcp_close(struct fsl_mc_io *mc_io, int dpmcp_close(struct fsl_mc_io *mc_io,
uint32_t cmd_flags, u32 cmd_flags,
uint16_t token); u16 token);
/** /**
* struct dpmcp_cfg - Structure representing DPMCP configuration * struct dpmcp_cfg - Structure representing DPMCP configuration
...@@ -60,17 +60,17 @@ struct dpmcp_cfg { ...@@ -60,17 +60,17 @@ struct dpmcp_cfg {
}; };
int dpmcp_create(struct fsl_mc_io *mc_io, int dpmcp_create(struct fsl_mc_io *mc_io,
uint32_t cmd_flags, u32 cmd_flags,
const struct dpmcp_cfg *cfg, const struct dpmcp_cfg *cfg,
uint16_t *token); u16 *token);
int dpmcp_destroy(struct fsl_mc_io *mc_io, int dpmcp_destroy(struct fsl_mc_io *mc_io,
uint32_t cmd_flags, u32 cmd_flags,
uint16_t token); u16 token);
int dpmcp_reset(struct fsl_mc_io *mc_io, int dpmcp_reset(struct fsl_mc_io *mc_io,
uint32_t cmd_flags, u32 cmd_flags,
uint16_t token); u16 token);
/* IRQ */ /* IRQ */
/* IRQ Index */ /* IRQ Index */
...@@ -85,53 +85,53 @@ int dpmcp_reset(struct fsl_mc_io *mc_io, ...@@ -85,53 +85,53 @@ int dpmcp_reset(struct fsl_mc_io *mc_io,
* @irq_num: A user defined number associated with this IRQ * @irq_num: A user defined number associated with this IRQ
*/ */
struct dpmcp_irq_cfg { struct dpmcp_irq_cfg {
uint64_t paddr; u64 paddr;
uint32_t val; u32 val;
int irq_num; int irq_num;
}; };
int dpmcp_set_irq(struct fsl_mc_io *mc_io, int dpmcp_set_irq(struct fsl_mc_io *mc_io,
uint32_t cmd_flags, u32 cmd_flags,
uint16_t token, u16 token,
uint8_t irq_index, u8 irq_index,
struct dpmcp_irq_cfg *irq_cfg); struct dpmcp_irq_cfg *irq_cfg);
int dpmcp_get_irq(struct fsl_mc_io *mc_io, int dpmcp_get_irq(struct fsl_mc_io *mc_io,
uint32_t cmd_flags, u32 cmd_flags,
uint16_t token, u16 token,
uint8_t irq_index, u8 irq_index,
int *type, int *type,
struct dpmcp_irq_cfg *irq_cfg); struct dpmcp_irq_cfg *irq_cfg);
int dpmcp_set_irq_enable(struct fsl_mc_io *mc_io, int dpmcp_set_irq_enable(struct fsl_mc_io *mc_io,
uint32_t cmd_flags, u32 cmd_flags,
uint16_t token, u16 token,
uint8_t irq_index, u8 irq_index,
uint8_t en); u8 en);
int dpmcp_get_irq_enable(struct fsl_mc_io *mc_io, int dpmcp_get_irq_enable(struct fsl_mc_io *mc_io,
uint32_t cmd_flags, u32 cmd_flags,
uint16_t token, u16 token,
uint8_t irq_index, u8 irq_index,
uint8_t *en); u8 *en);
int dpmcp_set_irq_mask(struct fsl_mc_io *mc_io, int dpmcp_set_irq_mask(struct fsl_mc_io *mc_io,
uint32_t cmd_flags, u32 cmd_flags,
uint16_t token, u16 token,
uint8_t irq_index, u8 irq_index,
uint32_t mask); u32 mask);
int dpmcp_get_irq_mask(struct fsl_mc_io *mc_io, int dpmcp_get_irq_mask(struct fsl_mc_io *mc_io,
uint32_t cmd_flags, u32 cmd_flags,
uint16_t token, u16 token,
uint8_t irq_index, u8 irq_index,
uint32_t *mask); u32 *mask);
int dpmcp_get_irq_status(struct fsl_mc_io *mc_io, int dpmcp_get_irq_status(struct fsl_mc_io *mc_io,
uint32_t cmd_flags, u32 cmd_flags,
uint16_t token, u16 token,
uint8_t irq_index, u8 irq_index,
uint32_t *status); u32 *status);
/** /**
* struct dpmcp_attr - Structure representing DPMCP attributes * struct dpmcp_attr - Structure representing DPMCP attributes
...@@ -146,14 +146,14 @@ struct dpmcp_attr { ...@@ -146,14 +146,14 @@ struct dpmcp_attr {
* @minor: DPMCP minor version * @minor: DPMCP minor version
*/ */
struct { struct {
uint16_t major; u16 major;
uint16_t minor; u16 minor;
} version; } version;
}; };
int dpmcp_get_attributes(struct fsl_mc_io *mc_io, int dpmcp_get_attributes(struct fsl_mc_io *mc_io,
uint32_t cmd_flags, u32 cmd_flags,
uint16_t token, u16 token,
struct dpmcp_attr *attr); struct dpmcp_attr *attr);
#endif /* __FSL_DPMCP_H */ #endif /* __FSL_DPMCP_H */
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