Skip to content

Commit

Permalink
staging: vt6556: Cleanup coding style: lines over 80 chars
Browse files Browse the repository at this point in the history
This patch cleanup the follwoing coding style issues:
 - line over 80 chars
 - spaces on the beginning of a line
 - put { and } on the correct places

Tested by compilation only.

Signed-off-by: Peter Senna Tschudin <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
petersenna authored and gregkh committed Jul 16, 2014
1 parent 618d7d0 commit 42b138d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
8 changes: 5 additions & 3 deletions drivers/staging/vt6656/baseband.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,9 @@ static u8 vnt_vt3184_vt3226d0[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 /* 0xff */
};

static const u16 awcFrameTime[MAX_RATE] =
{10, 20, 55, 110, 24, 36, 48, 72, 96, 144, 192, 216};
static const u16 awcFrameTime[MAX_RATE] = {
10, 20, 55, 110, 24, 36, 48, 72, 96, 144, 192, 216
};

/*
* Description: Calculate data frame transmitting time
Expand Down Expand Up @@ -469,7 +470,8 @@ int BBbVT3184Init(struct vnt_private *priv)
priv->ldBmThreshold[2] = 0;
priv->ldBmThreshold[3] = 0;
/* Fix VT3226 DFC system timing issue */
vnt_mac_reg_bits_on(priv, MAC_REG_SOFTPWRCTL2, SOFTPWRCTL_RFLEOPT);
vnt_mac_reg_bits_on(priv, MAC_REG_SOFTPWRCTL2,
SOFTPWRCTL_RFLEOPT);
} else {
return true;
}
Expand Down
9 changes: 5 additions & 4 deletions drivers/staging/vt6656/card.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@
/* const u16 cwRXBCNTSFOff[MAX_RATE] =
{17, 34, 96, 192, 34, 23, 17, 11, 8, 5, 4, 3}; */

static const u16 cwRXBCNTSFOff[MAX_RATE] =
{192, 96, 34, 17, 34, 23, 17, 11, 8, 5, 4, 3};
static const u16 cwRXBCNTSFOff[MAX_RATE] = {
192, 96, 34, 17, 34, 23, 17, 11, 8, 5, 4, 3
};

/*
* Description: Set NIC media channel
Expand Down Expand Up @@ -477,7 +478,7 @@ void vnt_update_top_rates(struct vnt_private *priv)
}

priv->byTopCCKBasicRate = top_cck;
}
}

int vnt_ofdm_min_rate(struct vnt_private *priv)
{
Expand Down Expand Up @@ -710,7 +711,7 @@ void vnt_update_next_tbtt(struct vnt_private *priv, u64 tsf,
data[7] = (u8)(tsf >> 56);

vnt_control_out(priv, MESSAGE_TYPE_SET_TSFTBTT,
MESSAGE_REQUEST_TBTT, 0, 8, data);
MESSAGE_REQUEST_TBTT, 0, 8, data);

dev_dbg(&priv->usb->dev, "%s TBTT: %8llx\n", __func__, tsf);

Expand Down
5 changes: 3 additions & 2 deletions drivers/staging/vt6656/main_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -531,8 +531,9 @@ static void device_free_rx_bufs(struct vnt_private *priv)

static void usb_device_reset(struct vnt_private *pDevice)
{
int status;
status = usb_reset_device(pDevice->usb);
int status;

status = usb_reset_device(pDevice->usb);
if (status)
printk("usb_device_reset fail status=%d\n",status);
return ;
Expand Down

0 comments on commit 42b138d

Please sign in to comment.