From 0d761a20e9450df351c75ccad5c1273349dda225 Mon Sep 17 00:00:00 2001 From: Madalin Bucur Date: Tue, 16 Sep 2014 16:28:56 +0300 Subject: fmd: use proper return value Channel value is uint16_t, return adequate type. Signed-off-by: Madalin Bucur Change-Id: I4295b7f706e9db36ac9d6d02b8896fa11067f612 Reviewed-on: http://git.am.freescale.net:8181/18840 Reviewed-by: Marian Cristian Rotariu diff --git a/drivers/net/ethernet/freescale/fman/src/inc/wrapper/lnxwrp_fsl_fman.h b/drivers/net/ethernet/freescale/fman/src/inc/wrapper/lnxwrp_fsl_fman.h index aa3ec30..987fe40 100644 --- a/drivers/net/ethernet/freescale/fman/src/inc/wrapper/lnxwrp_fsl_fman.h +++ b/drivers/net/ethernet/freescale/fman/src/inc/wrapper/lnxwrp_fsl_fman.h @@ -231,7 +231,7 @@ void fm_port_get_buff_layout_ext_params(struct fm_port *port, struct fm_port_par @Cautions Allowed only after the port is binded. *//***************************************************************************/ -int fm_get_tx_port_channel(struct fm_port *port); +uint16_t fm_get_tx_port_channel(struct fm_port *port); /**************************************************************************//** @Function fm_set_tx_port_params diff --git a/drivers/net/ethernet/freescale/fman/src/wrapper/lnxwrp_fm.c b/drivers/net/ethernet/freescale/fman/src/wrapper/lnxwrp_fm.c index b9a2097..427de85 100755 --- a/drivers/net/ethernet/freescale/fman/src/wrapper/lnxwrp_fm.c +++ b/drivers/net/ethernet/freescale/fman/src/wrapper/lnxwrp_fm.c @@ -1331,7 +1331,7 @@ void fm_port_get_buff_layout_ext_params(struct fm_port *port, struct fm_port_par } EXPORT_SYMBOL(fm_port_get_buff_layout_ext_params); -int fm_get_tx_port_channel(struct fm_port *port) +uint16_t fm_get_tx_port_channel(struct fm_port *port) { t_LnxWrpFmPortDev *p_LnxWrpFmPortDev = (t_LnxWrpFmPortDev*)port; -- cgit v0.10.2