[PATCH] Staging: emxx_udc: emxx_udc: remove spaces before semicolons
Remove spaces before semicolons to remove checkpatch warnings. Signed-off-by: Andrew Plummer --- drivers/staging/emxx_udc/emxx_udc.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/emxx_udc/emxx_udc.c b/drivers/staging/emxx_udc/emxx_udc.c index b2eaf01..adc24a9 100644 --- a/drivers/staging/emxx_udc/emxx_udc.c +++ b/drivers/staging/emxx_udc/emxx_udc.c @@ -77,14 +77,14 @@ struct nbu2ss_udc udc_controller; /* Read */ static inline u32 _nbu2ss_readl(void *address) { - return __raw_readl(address) ; + return __raw_readl(address); } /*-*/ /* Write */ static inline void _nbu2ss_writel(void *address, u32 udata) { - __raw_writel(udata, address) ; + __raw_writel(udata, address); } /*-*/ @@ -92,7 +92,7 @@ static inline void _nbu2ss_writel(void *address, u32 udata) static inline void _nbu2ss_bitset(void *address, u32 udata) { u32 reg_dt = __raw_readl(address) | (udata); - __raw_writel(reg_dt, address) ; + __raw_writel(reg_dt, address); } /*-*/ @@ -100,7 +100,7 @@ static inline void _nbu2ss_bitset(void *address, u32 udata) static inline void _nbu2ss_bitclr(void *address, u32 udata) { u32 reg_dt = __raw_readl(address) & ~(udata); - __raw_writel(reg_dt, address) ; + __raw_writel(reg_dt, address); } #ifdef UDC_DEBUG_DUMP -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[PATCH] Staging: nokia_h4p: nokia_fw: remove extra return
Remove empty return at end of function. Signed-off-by: Andrew Plummer --- drivers/staging/nokia_h4p/nokia_fw.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/nokia_h4p/nokia_fw.c b/drivers/staging/nokia_h4p/nokia_fw.c index 14ba219..18953ae 100644 --- a/drivers/staging/nokia_h4p/nokia_fw.c +++ b/drivers/staging/nokia_h4p/nokia_fw.c @@ -197,8 +197,6 @@ void hci_h4p_parse_fw_event(struct hci_h4p_info *info, struct sk_buff *skb) dev_err(info->dev, "Don't know how to parse fw event\n"); info->fw_error = -EINVAL; } - - return; } MODULE_FIRMWARE(FW_NAME_TI1271_PRELE); -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[PATCH] Staging: nokia_h4p: nokia_fw: remove extra return
Remove empty return at end of function. Signed-off-by: Andrew Plummer plummer...@gmail.com --- drivers/staging/nokia_h4p/nokia_fw.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/nokia_h4p/nokia_fw.c b/drivers/staging/nokia_h4p/nokia_fw.c index 14ba219..18953ae 100644 --- a/drivers/staging/nokia_h4p/nokia_fw.c +++ b/drivers/staging/nokia_h4p/nokia_fw.c @@ -197,8 +197,6 @@ void hci_h4p_parse_fw_event(struct hci_h4p_info *info, struct sk_buff *skb) dev_err(info-dev, Don't know how to parse fw event\n); info-fw_error = -EINVAL; } - - return; } MODULE_FIRMWARE(FW_NAME_TI1271_PRELE); -- 1.9.1 -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[PATCH] Staging: emxx_udc: emxx_udc: remove spaces before semicolons
Remove spaces before semicolons to remove checkpatch warnings. Signed-off-by: Andrew Plummer plummer...@gmail.com --- drivers/staging/emxx_udc/emxx_udc.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/emxx_udc/emxx_udc.c b/drivers/staging/emxx_udc/emxx_udc.c index b2eaf01..adc24a9 100644 --- a/drivers/staging/emxx_udc/emxx_udc.c +++ b/drivers/staging/emxx_udc/emxx_udc.c @@ -77,14 +77,14 @@ struct nbu2ss_udc udc_controller; /* Read */ static inline u32 _nbu2ss_readl(void *address) { - return __raw_readl(address) ; + return __raw_readl(address); } /*-*/ /* Write */ static inline void _nbu2ss_writel(void *address, u32 udata) { - __raw_writel(udata, address) ; + __raw_writel(udata, address); } /*-*/ @@ -92,7 +92,7 @@ static inline void _nbu2ss_writel(void *address, u32 udata) static inline void _nbu2ss_bitset(void *address, u32 udata) { u32 reg_dt = __raw_readl(address) | (udata); - __raw_writel(reg_dt, address) ; + __raw_writel(reg_dt, address); } /*-*/ @@ -100,7 +100,7 @@ static inline void _nbu2ss_bitset(void *address, u32 udata) static inline void _nbu2ss_bitclr(void *address, u32 udata) { u32 reg_dt = __raw_readl(address) ~(udata); - __raw_writel(reg_dt, address) ; + __raw_writel(reg_dt, address); } #ifdef UDC_DEBUG_DUMP -- 1.9.1 -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[PATCH] Staging: bcm: LeakyBucket: format kernel-docs
Remove insignificant spaces before tabs in comments. Signed-off-by: Andrew Plummer --- drivers/staging/bcm/LeakyBucket.c | 81 --- 1 file changed, 33 insertions(+), 48 deletions(-) diff --git a/drivers/staging/bcm/LeakyBucket.c b/drivers/staging/bcm/LeakyBucket.c index 8c4030d..d6b55f9 100644 --- a/drivers/staging/bcm/LeakyBucket.c +++ b/drivers/staging/bcm/LeakyBucket.c @@ -1,20 +1,16 @@ /** -* LEAKYBUCKET.C +* LEAKYBUCKET.C * This file contains the routines related to Leaky Bucket Algorithm. ***/ #include "headers.h" -/* -* Function- UpdateTokenCount() -* -* Description - This function calculates the token count for each -* channel and updates the same in Adapter strucuture. -* -* Parameters - Adapter: Pointer to the Adapter structure. -* -* Returns - None -**/ - +/** + * UpdateTokenCount() - Calculates the token count for each channel + * and updates the same in Adapter structure + * @Adapter: Pointer to the Adapter structure. + * + * Return: None + */ static VOID UpdateTokenCount(register struct bcm_mini_adapter *Adapter) { ULONG liCurrentTime; @@ -59,20 +55,16 @@ static VOID UpdateTokenCount(register struct bcm_mini_adapter *Adapter) } -/* -* Function- IsPacketAllowedForFlow() -* -* Description - This function checks whether the given packet from the -* specified queue can be allowed for transmission by -* checking the token count. -* -* Parameters - Adapter : Pointer to the Adpater structure. -*- iQIndex : The queue Identifier. -*- ulPacketLength: Number of bytes to be transmitted. -* -* Returns - The number of bytes allowed for transmission. -* -***/ +/** + * IsPacketAllowedForFlow() - This function checks whether the given + * packet from the specified queue can be allowed for transmission by + * checking the token count. + * @Adapter: Pointer to the Adpater structure. + * @iQIndex: The queue Identifier. + * @ulPacketLength:Number of bytes to be transmitted. + * + * Returns: The number of bytes allowed for transmission. + */ static ULONG GetSFTokenCount(struct bcm_mini_adapter *Adapter, struct bcm_packet_info *psSF) { BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, TOKEN_COUNTS, DBG_LVL_ALL, @@ -256,18 +248,14 @@ static void send_control_packet(struct bcm_mini_adapter *ad, } } -/ -* Function- CheckAndSendPacketFromIndex() -* -* Description - This function dequeues the data/control packet from the -* specified queue for transmission. -* -* Parameters - Adapter : Pointer to the driver control structure. -*- iQIndex : The queue Identifier. -* -* Returns - None. -* -/ +/** + * CheckAndSendPacketFromIndex() - This function dequeues the + * data/control packet from the specified queue for transmission. + * @Adapter: Pointer to the driver control structure. + * @iQIndex: The queue Identifier. + * + * Returns: None. + */ static VOID CheckAndSendPacketFromIndex(struct bcm_mini_adapter *Adapter, struct bcm_packet_info *psSF) { @@ -284,16 +272,13 @@ static VOID CheckAndSendPacketFromIndex(struct bcm_mini_adapter *Adapter, } -/*** -* Function- transmit_packets() -* -* Description - This function transmits the packets from different -* queues, if free descriptors are available on target. -* -* Parameters - Adapter: Pointer to the Adapter structure. -* -* Returns - None. -/ +/** + * transmit_packets() - This function transmits the packets from + * different queues, if free descriptors are available on target. + * @Adapter: Pointer to the Adapter structure. + * + * Returns: None. + */ VOID transmit_packets(struct bcm_mini_adapter *Adapter) { UINT uiPrevTotalCount = 0; -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[PATCH] Staging: bcm: LeakyBucket: format kernel-docs
Remove insignificant spaces before tabs in comments. Signed-off-by: Andrew Plummer plummer...@gmail.com --- drivers/staging/bcm/LeakyBucket.c | 81 --- 1 file changed, 33 insertions(+), 48 deletions(-) diff --git a/drivers/staging/bcm/LeakyBucket.c b/drivers/staging/bcm/LeakyBucket.c index 8c4030d..d6b55f9 100644 --- a/drivers/staging/bcm/LeakyBucket.c +++ b/drivers/staging/bcm/LeakyBucket.c @@ -1,20 +1,16 @@ /** -* LEAKYBUCKET.C +* LEAKYBUCKET.C * This file contains the routines related to Leaky Bucket Algorithm. ***/ #include headers.h -/* -* Function- UpdateTokenCount() -* -* Description - This function calculates the token count for each -* channel and updates the same in Adapter strucuture. -* -* Parameters - Adapter: Pointer to the Adapter structure. -* -* Returns - None -**/ - +/** + * UpdateTokenCount() - Calculates the token count for each channel + * and updates the same in Adapter structure + * @Adapter: Pointer to the Adapter structure. + * + * Return: None + */ static VOID UpdateTokenCount(register struct bcm_mini_adapter *Adapter) { ULONG liCurrentTime; @@ -59,20 +55,16 @@ static VOID UpdateTokenCount(register struct bcm_mini_adapter *Adapter) } -/* -* Function- IsPacketAllowedForFlow() -* -* Description - This function checks whether the given packet from the -* specified queue can be allowed for transmission by -* checking the token count. -* -* Parameters - Adapter : Pointer to the Adpater structure. -*- iQIndex : The queue Identifier. -*- ulPacketLength: Number of bytes to be transmitted. -* -* Returns - The number of bytes allowed for transmission. -* -***/ +/** + * IsPacketAllowedForFlow() - This function checks whether the given + * packet from the specified queue can be allowed for transmission by + * checking the token count. + * @Adapter: Pointer to the Adpater structure. + * @iQIndex: The queue Identifier. + * @ulPacketLength:Number of bytes to be transmitted. + * + * Returns: The number of bytes allowed for transmission. + */ static ULONG GetSFTokenCount(struct bcm_mini_adapter *Adapter, struct bcm_packet_info *psSF) { BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, TOKEN_COUNTS, DBG_LVL_ALL, @@ -256,18 +248,14 @@ static void send_control_packet(struct bcm_mini_adapter *ad, } } -/ -* Function- CheckAndSendPacketFromIndex() -* -* Description - This function dequeues the data/control packet from the -* specified queue for transmission. -* -* Parameters - Adapter : Pointer to the driver control structure. -*- iQIndex : The queue Identifier. -* -* Returns - None. -* -/ +/** + * CheckAndSendPacketFromIndex() - This function dequeues the + * data/control packet from the specified queue for transmission. + * @Adapter: Pointer to the driver control structure. + * @iQIndex: The queue Identifier. + * + * Returns: None. + */ static VOID CheckAndSendPacketFromIndex(struct bcm_mini_adapter *Adapter, struct bcm_packet_info *psSF) { @@ -284,16 +272,13 @@ static VOID CheckAndSendPacketFromIndex(struct bcm_mini_adapter *Adapter, } -/*** -* Function- transmit_packets() -* -* Description - This function transmits the packets from different -* queues, if free descriptors are available on target. -* -* Parameters - Adapter: Pointer to the Adapter structure. -* -* Returns - None. -/ +/** + * transmit_packets() - This function transmits the packets from + * different queues, if free descriptors are available on target. + * @Adapter: Pointer to the Adapter structure. + * + * Returns: None. + */ VOID transmit_packets(struct bcm_mini_adapter *Adapter) { UINT uiPrevTotalCount = 0; -- 1.9.1 -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/