Commit 8b80448d authored by Gokulnath Avanashilingam's avatar Gokulnath Avanashilingam Committed by Greg Kroah-Hartman

staging: bcm: fixed warning about no and prohibited space in InterfaceIdleMode.c.

This patch fixes all the warning related to spacing issues
found by checkpatch.pl script in InterfaceIdleMode.c
Signed-off-by: default avatarGokulnath Avanashilingam <Gokulnath.Avanashilingam@in.bosch.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e42ff08d
...@@ -58,15 +58,15 @@ int InterfaceIdleModeRespond(struct bcm_mini_adapter *Adapter, ...@@ -58,15 +58,15 @@ int InterfaceIdleModeRespond(struct bcm_mini_adapter *Adapter,
if (ntohl(*puiBuffer) == GO_TO_IDLE_MODE_PAYLOAD) { if (ntohl(*puiBuffer) == GO_TO_IDLE_MODE_PAYLOAD) {
if (ntohl(*(puiBuffer+1)) == 0) { if (ntohl(*(puiBuffer+1)) == 0) {
status = wrmalt (Adapter, SW_ABORT_IDLEMODE_LOC, status = wrmalt(Adapter, SW_ABORT_IDLEMODE_LOC,
&uiRegRead, sizeof(uiRegRead)); &uiRegRead, sizeof(uiRegRead));
if (status) if (status)
return status; return status;
if (Adapter->ulPowerSaveMode == if (Adapter->ulPowerSaveMode ==
DEVICE_POWERSAVE_MODE_AS_MANUAL_CLOCK_GATING) { DEVICE_POWERSAVE_MODE_AS_MANUAL_CLOCK_GATING) {
uiRegRead = 0x00000000 ; uiRegRead = 0x00000000;
status = wrmalt (Adapter, status = wrmalt(Adapter,
DEBUG_INTERRUPT_GENERATOR_REGISTOR, DEBUG_INTERRUPT_GENERATOR_REGISTOR,
&uiRegRead, sizeof(uiRegRead)); &uiRegRead, sizeof(uiRegRead));
if (status) if (status)
...@@ -101,7 +101,7 @@ int InterfaceIdleModeRespond(struct bcm_mini_adapter *Adapter, ...@@ -101,7 +101,7 @@ int InterfaceIdleModeRespond(struct bcm_mini_adapter *Adapter,
} else { } else {
if (TRUE == Adapter->IdleMode) if (TRUE == Adapter->IdleMode)
return status ; return status;
uiRegRead = 0; uiRegRead = 0;
...@@ -120,7 +120,7 @@ int InterfaceIdleModeRespond(struct bcm_mini_adapter *Adapter, ...@@ -120,7 +120,7 @@ int InterfaceIdleModeRespond(struct bcm_mini_adapter *Adapter,
uiRegRead |= (1<<17); uiRegRead |= (1<<17);
status = wrmalt (Adapter, HPM_CONFIG_MSW, status = wrmalt(Adapter, HPM_CONFIG_MSW,
&uiRegRead, sizeof(uiRegRead)); &uiRegRead, sizeof(uiRegRead));
if (status) if (status)
return status; return status;
...@@ -138,7 +138,7 @@ static int InterfaceAbortIdlemode(struct bcm_mini_adapter *Adapter, ...@@ -138,7 +138,7 @@ static int InterfaceAbortIdlemode(struct bcm_mini_adapter *Adapter,
{ {
int status = STATUS_SUCCESS; int status = STATUS_SUCCESS;
unsigned int value; unsigned int value;
unsigned int chip_id ; unsigned int chip_id;
unsigned long timeout = 0, itr = 0; unsigned long timeout = 0, itr = 0;
int lenwritten = 0; int lenwritten = 0;
...@@ -179,7 +179,7 @@ static int InterfaceAbortIdlemode(struct bcm_mini_adapter *Adapter, ...@@ -179,7 +179,7 @@ static int InterfaceAbortIdlemode(struct bcm_mini_adapter *Adapter,
* To be Done in Thread Context. * To be Done in Thread Context.
* Not using Asynchronous Mechanism. * Not using Asynchronous Mechanism.
*/ */
status = usb_interrupt_msg (psInterfaceAdapter->udev, status = usb_interrupt_msg(psInterfaceAdapter->udev,
usb_sndintpipe(psInterfaceAdapter->udev, usb_sndintpipe(psInterfaceAdapter->udev,
psInterfaceAdapter->sIntrOut.int_out_endpointAddr), psInterfaceAdapter->sIntrOut.int_out_endpointAddr),
aucAbortPattern, aucAbortPattern,
...@@ -195,9 +195,9 @@ static int InterfaceAbortIdlemode(struct bcm_mini_adapter *Adapter, ...@@ -195,9 +195,9 @@ static int InterfaceAbortIdlemode(struct bcm_mini_adapter *Adapter,
/* mdelay(25); */ /* mdelay(25); */
timeout = jiffies + msecs_to_jiffies(50) ; timeout = jiffies + msecs_to_jiffies(50);
while (time_after(timeout, jiffies)) { while (time_after(timeout, jiffies)) {
itr++ ; itr++;
rdmalt(Adapter, CHIP_ID_REG, &chip_id, sizeof(UINT)); rdmalt(Adapter, CHIP_ID_REG, &chip_id, sizeof(UINT));
if (0xbece3200 == (chip_id&~(0xF0))) if (0xbece3200 == (chip_id&~(0xF0)))
chip_id = chip_id&~(0xF0); chip_id = chip_id&~(0xF0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment