From d191e51acb0c1876dfb98936cdaec34627b6f5e2 Mon Sep 17 00:00:00 2001 From: Ganga Negi Date: Fri, 27 Dec 2013 17:37:48 +0530 Subject: fsl_qman: Fix CEETM APIs spelling Also fix some parameters type mismatch Signed-off-by: Ganga Negi Change-Id: I2f7b6951220732bec0791c1d7550ba78183d4882 Reviewed-on: http://git.am.freescale.net:8181/8083 Tested-by: Review Code-CDREVIEW Reviewed-by: Emilian Medve diff --git a/drivers/staging/fsl_qbman/qman_high.c b/drivers/staging/fsl_qbman/qman_high.c index 53dbd9f..cd2f884 100644 --- a/drivers/staging/fsl_qbman/qman_high.c +++ b/drivers/staging/fsl_qbman/qman_high.c @@ -4078,7 +4078,7 @@ int qman_ceetm_channel_set_group_er_eligibility(struct qm_ceetm_channel EXPORT_SYMBOL(qman_ceetm_channel_set_group_er_eligibility); int qman_ceetm_channel_set_cq_cr_eligibility(struct qm_ceetm_channel *channel, - unsigned int idx, u16 cre) + unsigned int idx, int cre) { struct qm_mcc_ceetm_class_scheduler_config csch_config; struct qm_mcr_ceetm_class_scheduler_query csch_query; @@ -4112,7 +4112,7 @@ int qman_ceetm_channel_set_cq_cr_eligibility(struct qm_ceetm_channel *channel, EXPORT_SYMBOL(qman_ceetm_channel_set_cq_cr_eligibility); int qman_ceetm_channel_set_cq_er_eligibility(struct qm_ceetm_channel *channel, - unsigned int idx, u16 ere) + unsigned int idx, int ere) { struct qm_mcc_ceetm_class_scheduler_config csch_config; struct qm_mcr_ceetm_class_scheduler_query csch_query; diff --git a/include/linux/fsl_qman.h b/include/linux/fsl_qman.h index 5d84735..89721b9 100644 --- a/include/linux/fsl_qman.h +++ b/include/linux/fsl_qman.h @@ -2883,30 +2883,30 @@ int qman_ceetm_channel_get_group(struct qm_ceetm_channel *channel, /** * qman_ceetm_channel_set_group_cr_eligibility - * qman_ceetm_channel_set_group_er_eligibility - Set channel group eligibitity + * qman_ceetm_channel_set_group_er_eligibility - Set channel group eligibility * @channel: the given channel object * @group_b: indicates whether there is group B in this channel. * @cre: the commit rate eligibility, 1 for enable, 0 for disable. * - * Return zero for success, or -EINVAL if eligiblity setting fails. + * Return zero for success, or -EINVAL if eligibility setting fails. */ -int qman_ceetm_channel_set_group_cr_eligiblility(struct qm_ceetm_channel +int qman_ceetm_channel_set_group_cr_eligibility(struct qm_ceetm_channel *channel, int group_b, int cre); -int qman_ceetm_channel_set_group_er_eligiblility(struct qm_ceetm_channel +int qman_ceetm_channel_set_group_er_eligibility(struct qm_ceetm_channel *channel, int group_b, int ere); /** * qman_ceetm_channel_set_cq_cr_eligibility - * qman_ceetm_channel_set_cq_er_eligibility - Set channel cq eligibitity + * qman_ceetm_channel_set_cq_er_eligibility - Set channel cq eligibility * @channel: the given channel object * @idx: is from 0 to 7 (representing CQ0 to CQ7). * @cre: the commit rate eligibility, 1 for enable, 0 for disable. * - * Return zero for success, or -EINVAL if eligiblity setting fails. + * Return zero for success, or -EINVAL if eligibility setting fails. */ -int qman_ceetm_channel_set_cq_cr_eligiblility(struct qm_ceetm_channel *channel, +int qman_ceetm_channel_set_cq_cr_eligibility(struct qm_ceetm_channel *channel, unsigned int idx, int cre); -int qman_ceetm_channel_set_cq_er_eligiblility(struct qm_ceetm_channel *channel, +int qman_ceetm_channel_set_cq_er_eligibility(struct qm_ceetm_channel *channel, unsigned int idx, int ere); /* --------------------- */ -- cgit v0.10.2