Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1516048

[PATCH 2/6] Staging: fsl-mc: bus: dpmcp: Kernel type 'u16' preferred over 'uint16_t'

From Shiva Kerdel <shiva@exdev.nl>
Newsgroups linux.kernel
Subject [PATCH 2/6] Staging: fsl-mc: bus: dpmcp: Kernel type 'u16' preferred over 'uint16_t'
Date 2016-11-07 13:10 +0100
Message-ID <sAQUp-2Vd-21@gated-at.bofh.it> (permalink)
References <sAQUp-2Vd-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Follow the kernel type preferrences of using 'u16' over 'uint16_t'.

Signed-off-by: Shiva Kerdel <shiva@exdev.nl>
---
 drivers/staging/fsl-mc/bus/dpmcp.h | 30 +++++++++++++++---------------
 1 file changed, 15 insertions(+), 15 deletions(-)

diff --git a/drivers/staging/fsl-mc/bus/dpmcp.h b/drivers/staging/fsl-mc/bus/dpmcp.h
index ad41428..a801061 100644
--- a/drivers/staging/fsl-mc/bus/dpmcp.h
+++ b/drivers/staging/fsl-mc/bus/dpmcp.h
@@ -41,14 +41,14 @@ struct fsl_mc_io;
 int dpmcp_open(struct fsl_mc_io *mc_io,
 	       u32 cmd_flags,
 	       int dpmcp_id,
-	       uint16_t *token);
+	       u16 *token);
 
 /* Get portal ID from pool */
 #define DPMCP_GET_PORTAL_ID_FROM_POOL (-1)
 
 int dpmcp_close(struct fsl_mc_io *mc_io,
 		u32 cmd_flags,
-		uint16_t token);
+		u16 token);
 
 /**
  * struct dpmcp_cfg - Structure representing DPMCP configuration
@@ -62,15 +62,15 @@ struct dpmcp_cfg {
 int dpmcp_create(struct fsl_mc_io	*mc_io,
 		 u32			cmd_flags,
 		 const struct dpmcp_cfg	*cfg,
-		uint16_t		*token);
+		u16			*token);
 
 int dpmcp_destroy(struct fsl_mc_io *mc_io,
 		  u32 cmd_flags,
-		  uint16_t token);
+		  u16 token);
 
 int dpmcp_reset(struct fsl_mc_io *mc_io,
 		u32 cmd_flags,
-		uint16_t token);
+		u16 token);
 
 /* IRQ */
 /* IRQ Index */
@@ -92,44 +92,44 @@ struct dpmcp_irq_cfg {
 
 int dpmcp_set_irq(struct fsl_mc_io	*mc_io,
 		  u32			cmd_flags,
-		  uint16_t		token,
+		  u16			token,
 		 uint8_t		irq_index,
 		  struct dpmcp_irq_cfg	*irq_cfg);
 
 int dpmcp_get_irq(struct fsl_mc_io	*mc_io,
 		  u32			cmd_flags,
-		  uint16_t		token,
+		  u16			token,
 		 uint8_t		irq_index,
 		 int			*type,
 		 struct dpmcp_irq_cfg	*irq_cfg);
 
 int dpmcp_set_irq_enable(struct fsl_mc_io	*mc_io,
 			 u32			cmd_flags,
-			 uint16_t		token,
+			 u16			token,
 			uint8_t			irq_index,
 			uint8_t			en);
 
 int dpmcp_get_irq_enable(struct fsl_mc_io	*mc_io,
 			 u32			cmd_flags,
-			 uint16_t		token,
+			 u16			token,
 			uint8_t			irq_index,
 			uint8_t			*en);
 
 int dpmcp_set_irq_mask(struct fsl_mc_io	*mc_io,
 		       u32	cmd_flags,
-		       uint16_t		token,
+		       u16		token,
 		      uint8_t		irq_index,
 		      u32		mask);
 
 int dpmcp_get_irq_mask(struct fsl_mc_io	*mc_io,
 		       u32	cmd_flags,
-		       uint16_t		token,
+		       u16		token,
 		      uint8_t		irq_index,
 		      u32		*mask);
 
 int dpmcp_get_irq_status(struct fsl_mc_io	*mc_io,
 			 u32			cmd_flags,
-			 uint16_t		token,
+			 u16			token,
 			uint8_t			irq_index,
 			u32			*status);
 
@@ -146,14 +146,14 @@ struct dpmcp_attr {
 	 * @minor:	DPMCP minor version
 	 */
 	struct {
-		uint16_t major;
-		uint16_t minor;
+		u16 major;
+		u16 minor;
 	} version;
 };
 
 int dpmcp_get_attributes(struct fsl_mc_io	*mc_io,
 			 u32			cmd_flags,
-			 uint16_t		token,
+			 u16			token,
 			struct dpmcp_attr	*attr);
 
 #endif /* __FSL_DPMCP_H */
-- 
2.10.2

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 1/6] Staging: fsl-mc: bus: dpmcp: Kernel type 'u32' preferred over 'uint32_t' Shiva Kerdel <shiva@exdev.nl> - 2016-11-07 13:10 +0100
  [PATCH 2/6] Staging: fsl-mc: bus: dpmcp: Kernel type 'u16' preferred over 'uint16_t' Shiva Kerdel <shiva@exdev.nl> - 2016-11-07 13:10 +0100
  [PATCH 4/6] Staging: fsl-mc: bus: dpmcp: Kernel type 'u64' preferred over 'uint64_t' Shiva Kerdel <shiva@exdev.nl> - 2016-11-07 13:10 +0100
  RE: [PATCH 1/6] Staging: fsl-mc: bus: dpmcp: Kernel type 'u32'  preferred over 'uint32_t' Stuart Yoder <stuart.yoder@nxp.com> - 2016-11-08 01:30 +0100

csiph-web