Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932182AbcKGMCy (ORCPT ); Mon, 7 Nov 2016 07:02:54 -0500 Received: from web01.01d.eu ([5.200.27.195]:33244 "EHLO web01.01d.eu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753095AbcKGMCI (ORCPT ); Mon, 7 Nov 2016 07:02:08 -0500 From: Shiva Kerdel To: German.Rivera@freescale.com Cc: stuart.yoder@nxp.com, gregkh@linuxfoundation.org, german.rivera@nxp.com, itai.katz@nxp.com, treding@nvidia.com, bharat.bhushan@nxp.com, nipun.gupta@nxp.com, linux-kernel@vger.kernel.org, devel@driverdev.osuosl.org, Shiva Kerdel Subject: [PATCH 2/6] Staging: fsl-mc: bus: dpmcp: Kernel type 'u16' preferred over 'uint16_t' Date: Mon, 7 Nov 2016 13:01:21 +0100 Message-Id: <20161107120125.4663-2-shiva@exdev.nl> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20161107120125.4663-1-shiva@exdev.nl> References: <20161107120125.4663-1-shiva@exdev.nl> X-Authenticated-Id: shiva@exdev.nl Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2859 Lines: 119 Follow the kernel type preferrences of using 'u16' over 'uint16_t'. Signed-off-by: Shiva Kerdel --- 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