beeceem: Replace C99-style comments with C89 pendants in InterfaceTx.c
Checkpatch complains about the use of //-comments, thus they are replaced by C89-style comments. Signed-off-by: Ralph Mueck <linux-kernel@rmueck.de> Signed-off-by: Matthias Oefelein <ma.oefelein@arcor.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Родитель
d1c6c9caaf
Коммит
4dcce62eaf
|
@ -32,11 +32,11 @@ static void write_bulk_callback(struct urb *urb/*, struct pt_regs *regs*/)
|
||||||
if (((pControlMsg->szData[0] == GO_TO_IDLE_MODE_PAYLOAD) &&
|
if (((pControlMsg->szData[0] == GO_TO_IDLE_MODE_PAYLOAD) &&
|
||||||
(pControlMsg->szData[1] == TARGET_CAN_GO_TO_IDLE_MODE))) {
|
(pControlMsg->szData[1] == TARGET_CAN_GO_TO_IDLE_MODE))) {
|
||||||
bpowerDownMsg = TRUE;
|
bpowerDownMsg = TRUE;
|
||||||
//This covers the bus err while Idle Request msg sent down.
|
/* This covers the bus err while Idle Request msg sent down. */
|
||||||
if (urb->status != STATUS_SUCCESS) {
|
if (urb->status != STATUS_SUCCESS) {
|
||||||
psAdapter->bPreparingForLowPowerMode = false;
|
psAdapter->bPreparingForLowPowerMode = false;
|
||||||
BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, NEXT_SEND, DBG_LVL_ALL, "Idle Mode Request msg failed to reach to Modem");
|
BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, NEXT_SEND, DBG_LVL_ALL, "Idle Mode Request msg failed to reach to Modem");
|
||||||
//Signalling the cntrl pkt path in Ioctl
|
/* Signalling the cntrl pkt path in Ioctl */
|
||||||
wake_up(&psAdapter->lowpower_mode_wait_queue);
|
wake_up(&psAdapter->lowpower_mode_wait_queue);
|
||||||
StartInterruptUrb(psIntfAdapter);
|
StartInterruptUrb(psIntfAdapter);
|
||||||
goto err_exit;
|
goto err_exit;
|
||||||
|
@ -44,11 +44,11 @@ static void write_bulk_callback(struct urb *urb/*, struct pt_regs *regs*/)
|
||||||
|
|
||||||
if (psAdapter->bDoSuspend == false) {
|
if (psAdapter->bDoSuspend == false) {
|
||||||
psAdapter->IdleMode = TRUE;
|
psAdapter->IdleMode = TRUE;
|
||||||
//since going in Idle mode completed hence making this var false;
|
/* since going in Idle mode completed hence making this var false */
|
||||||
psAdapter->bPreparingForLowPowerMode = false;
|
psAdapter->bPreparingForLowPowerMode = false;
|
||||||
|
|
||||||
BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, NEXT_SEND, DBG_LVL_ALL, "Host Entered in Idle Mode State...");
|
BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, NEXT_SEND, DBG_LVL_ALL, "Host Entered in Idle Mode State...");
|
||||||
//Signalling the cntrl pkt path in Ioctl
|
/* Signalling the cntrl pkt path in Ioctl*/
|
||||||
wake_up(&psAdapter->lowpower_mode_wait_queue);
|
wake_up(&psAdapter->lowpower_mode_wait_queue);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -56,11 +56,11 @@ static void write_bulk_callback(struct urb *urb/*, struct pt_regs *regs*/)
|
||||||
(pControlMsg->szData[0] == LINK_UP_ACK) &&
|
(pControlMsg->szData[0] == LINK_UP_ACK) &&
|
||||||
(pControlMsg->szData[1] == LINK_SHUTDOWN_REQ_FROM_FIRMWARE) &&
|
(pControlMsg->szData[1] == LINK_SHUTDOWN_REQ_FROM_FIRMWARE) &&
|
||||||
(pControlMsg->szData[2] == SHUTDOWN_ACK_FROM_DRIVER)) {
|
(pControlMsg->szData[2] == SHUTDOWN_ACK_FROM_DRIVER)) {
|
||||||
//This covers the bus err while shutdown Request msg sent down.
|
/* This covers the bus err while shutdown Request msg sent down. */
|
||||||
if (urb->status != STATUS_SUCCESS) {
|
if (urb->status != STATUS_SUCCESS) {
|
||||||
psAdapter->bPreparingForLowPowerMode = false;
|
psAdapter->bPreparingForLowPowerMode = false;
|
||||||
BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, NEXT_SEND, DBG_LVL_ALL, "Shutdown Request Msg failed to reach to Modem");
|
BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, NEXT_SEND, DBG_LVL_ALL, "Shutdown Request Msg failed to reach to Modem");
|
||||||
//Signalling the cntrl pkt path in Ioctl
|
/* Signalling the cntrl pkt path in Ioctl */
|
||||||
wake_up(&psAdapter->lowpower_mode_wait_queue);
|
wake_up(&psAdapter->lowpower_mode_wait_queue);
|
||||||
StartInterruptUrb(psIntfAdapter);
|
StartInterruptUrb(psIntfAdapter);
|
||||||
goto err_exit;
|
goto err_exit;
|
||||||
|
@ -69,16 +69,16 @@ static void write_bulk_callback(struct urb *urb/*, struct pt_regs *regs*/)
|
||||||
bpowerDownMsg = TRUE;
|
bpowerDownMsg = TRUE;
|
||||||
if (psAdapter->bDoSuspend == false) {
|
if (psAdapter->bDoSuspend == false) {
|
||||||
psAdapter->bShutStatus = TRUE;
|
psAdapter->bShutStatus = TRUE;
|
||||||
//since going in shutdown mode completed hence making this var false;
|
/* since going in shutdown mode completed hence making this var false */
|
||||||
psAdapter->bPreparingForLowPowerMode = false;
|
psAdapter->bPreparingForLowPowerMode = false;
|
||||||
BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, NEXT_SEND, DBG_LVL_ALL, "Host Entered in shutdown Mode State...");
|
BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, NEXT_SEND, DBG_LVL_ALL, "Host Entered in shutdown Mode State...");
|
||||||
//Signalling the cntrl pkt path in Ioctl
|
/* Signalling the cntrl pkt path in Ioctl */
|
||||||
wake_up(&psAdapter->lowpower_mode_wait_queue);
|
wake_up(&psAdapter->lowpower_mode_wait_queue);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (psAdapter->bDoSuspend && bpowerDownMsg) {
|
if (psAdapter->bDoSuspend && bpowerDownMsg) {
|
||||||
//issuing bus suspend request
|
/* issuing bus suspend request */
|
||||||
BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, NEXT_SEND, DBG_LVL_ALL, "Issuing the Bus suspend request to USB stack");
|
BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, NEXT_SEND, DBG_LVL_ALL, "Issuing the Bus suspend request to USB stack");
|
||||||
psIntfAdapter->bPreparingForBusSuspend = TRUE;
|
psIntfAdapter->bPreparingForBusSuspend = TRUE;
|
||||||
schedule_work(&psIntfAdapter->usbSuspendWork);
|
schedule_work(&psIntfAdapter->usbSuspendWork);
|
||||||
|
@ -129,7 +129,7 @@ static int TransmitTcb(struct bcm_interface_adapter *psIntfAdapter, struct bcm_u
|
||||||
urb->transfer_buffer_length = len;
|
urb->transfer_buffer_length = len;
|
||||||
|
|
||||||
BCM_DEBUG_PRINT(psIntfAdapter->psAdapter, DBG_TYPE_TX, NEXT_SEND, DBG_LVL_ALL, "Sending Bulk out packet\n");
|
BCM_DEBUG_PRINT(psIntfAdapter->psAdapter, DBG_TYPE_TX, NEXT_SEND, DBG_LVL_ALL, "Sending Bulk out packet\n");
|
||||||
//For T3B,INT OUT end point will be used as bulk out end point
|
/* For T3B,INT OUT end point will be used as bulk out end point */
|
||||||
if ((psIntfAdapter->psAdapter->chip_id == T3B) && (psIntfAdapter->bHighSpeedDevice == TRUE)) {
|
if ((psIntfAdapter->psAdapter->chip_id == T3B) && (psIntfAdapter->bHighSpeedDevice == TRUE)) {
|
||||||
usb_fill_int_urb(urb, psIntfAdapter->udev,
|
usb_fill_int_urb(urb, psIntfAdapter->udev,
|
||||||
psIntfAdapter->sBulkOut.bulk_out_pipe,
|
psIntfAdapter->sBulkOut.bulk_out_pipe,
|
||||||
|
|
Загрузка…
Ссылка в новой задаче