mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-29 23:24:11 +08:00
staging: vt6656: Alignment should match open parenthesis
Fix checkpatch issues: "CHECK: Alignment should match open parenthesis" Signed-off-by: Arushi Singhal <arushisinghal19971997@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
cd3d9ecebf
commit
8129306658
@ -64,11 +64,11 @@ int vnt_download_firmware(struct vnt_private *priv)
|
||||
memcpy(buffer, fw->data + ii, length);
|
||||
|
||||
status = vnt_control_out(priv,
|
||||
0,
|
||||
0x1200+ii,
|
||||
0x0000,
|
||||
length,
|
||||
buffer);
|
||||
0,
|
||||
0x1200+ii,
|
||||
0x0000,
|
||||
length,
|
||||
buffer);
|
||||
|
||||
dev_dbg(dev, "Download firmware...%d %zu\n", ii, fw->size);
|
||||
|
||||
@ -94,11 +94,11 @@ int vnt_firmware_branch_to_sram(struct vnt_private *priv)
|
||||
dev_dbg(&priv->usb->dev, "---->Branch to Sram\n");
|
||||
|
||||
status = vnt_control_out(priv,
|
||||
1,
|
||||
0x1200,
|
||||
0x0000,
|
||||
0,
|
||||
NULL);
|
||||
1,
|
||||
0x1200,
|
||||
0x0000,
|
||||
0,
|
||||
NULL);
|
||||
return status == STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
@ -107,14 +107,14 @@ int vnt_check_firmware_version(struct vnt_private *priv)
|
||||
int status;
|
||||
|
||||
status = vnt_control_in(priv,
|
||||
MESSAGE_TYPE_READ,
|
||||
0,
|
||||
MESSAGE_REQUEST_VERSION,
|
||||
2,
|
||||
(u8 *)&priv->firmware_version);
|
||||
MESSAGE_TYPE_READ,
|
||||
0,
|
||||
MESSAGE_REQUEST_VERSION,
|
||||
2,
|
||||
(u8 *)&priv->firmware_version);
|
||||
|
||||
dev_dbg(&priv->usb->dev, "Firmware Version [%04x]\n",
|
||||
priv->firmware_version);
|
||||
priv->firmware_version);
|
||||
|
||||
if (status != STATUS_SUCCESS) {
|
||||
dev_dbg(&priv->usb->dev, "Firmware Invalid.\n");
|
||||
@ -126,7 +126,7 @@ int vnt_check_firmware_version(struct vnt_private *priv)
|
||||
}
|
||||
|
||||
dev_dbg(&priv->usb->dev, "Firmware Version [%04x]\n",
|
||||
priv->firmware_version);
|
||||
priv->firmware_version);
|
||||
|
||||
if (priv->firmware_version < FIRMWARE_VERSION) {
|
||||
/* branch to loader for download new firmware */
|
||||
|
@ -46,6 +46,6 @@
|
||||
int vnt_key_init_table(struct vnt_private *priv);
|
||||
|
||||
int vnt_set_keys(struct ieee80211_hw *hw, struct ieee80211_sta *sta,
|
||||
struct ieee80211_vif *vif, struct ieee80211_key_conf *key);
|
||||
struct ieee80211_vif *vif, struct ieee80211_key_conf *key);
|
||||
|
||||
#endif /* __KEY_H__ */
|
||||
|
@ -771,7 +771,7 @@ int vnt_rf_set_txpower(struct vnt_private *priv, u8 power, u32 rate)
|
||||
ret &= vnt_rf_write_embedded(priv, 0x015C0800);
|
||||
} else {
|
||||
dev_dbg(&priv->usb->dev,
|
||||
"@@@@ vnt_rf_set_txpower> 11G mode\n");
|
||||
"@@@@ vnt_rf_set_txpower> 11G mode\n");
|
||||
|
||||
power_setting = ((0x3f - power) << 20) | (0x7 << 8);
|
||||
|
||||
@ -876,7 +876,7 @@ void vnt_rf_table_download(struct vnt_private *priv)
|
||||
memcpy(array, addr1, length1);
|
||||
|
||||
vnt_control_out(priv, MESSAGE_TYPE_WRITE, 0,
|
||||
MESSAGE_REQUEST_RF_INIT, length1, array);
|
||||
MESSAGE_REQUEST_RF_INIT, length1, array);
|
||||
|
||||
/* Channel Table 0 */
|
||||
value = 0;
|
||||
@ -889,7 +889,7 @@ void vnt_rf_table_download(struct vnt_private *priv)
|
||||
memcpy(array, addr2, length);
|
||||
|
||||
vnt_control_out(priv, MESSAGE_TYPE_WRITE,
|
||||
value, MESSAGE_REQUEST_RF_CH0, length, array);
|
||||
value, MESSAGE_REQUEST_RF_CH0, length, array);
|
||||
|
||||
length2 -= length;
|
||||
value += length;
|
||||
@ -907,7 +907,7 @@ void vnt_rf_table_download(struct vnt_private *priv)
|
||||
memcpy(array, addr3, length);
|
||||
|
||||
vnt_control_out(priv, MESSAGE_TYPE_WRITE,
|
||||
value, MESSAGE_REQUEST_RF_CH1, length, array);
|
||||
value, MESSAGE_REQUEST_RF_CH1, length, array);
|
||||
|
||||
length3 -= length;
|
||||
value += length;
|
||||
@ -924,7 +924,7 @@ void vnt_rf_table_download(struct vnt_private *priv)
|
||||
|
||||
/* Init Table 2 */
|
||||
vnt_control_out(priv, MESSAGE_TYPE_WRITE,
|
||||
0, MESSAGE_REQUEST_RF_INIT2, length1, array);
|
||||
0, MESSAGE_REQUEST_RF_INIT2, length1, array);
|
||||
|
||||
/* Channel Table 0 */
|
||||
value = 0;
|
||||
@ -937,7 +937,7 @@ void vnt_rf_table_download(struct vnt_private *priv)
|
||||
memcpy(array, addr2, length);
|
||||
|
||||
vnt_control_out(priv, MESSAGE_TYPE_WRITE,
|
||||
value, MESSAGE_REQUEST_RF_CH2, length, array);
|
||||
value, MESSAGE_REQUEST_RF_CH2, length, array);
|
||||
|
||||
length2 -= length;
|
||||
value += length;
|
||||
|
@ -44,7 +44,7 @@
|
||||
#define USB_CTL_WAIT 500 /* ms */
|
||||
|
||||
int vnt_control_out(struct vnt_private *priv, u8 request, u16 value,
|
||||
u16 index, u16 length, u8 *buffer)
|
||||
u16 index, u16 length, u8 *buffer)
|
||||
{
|
||||
int status = 0;
|
||||
|
||||
@ -68,11 +68,11 @@ int vnt_control_out(struct vnt_private *priv, u8 request, u16 value,
|
||||
void vnt_control_out_u8(struct vnt_private *priv, u8 reg, u8 reg_off, u8 data)
|
||||
{
|
||||
vnt_control_out(priv, MESSAGE_TYPE_WRITE,
|
||||
reg_off, reg, sizeof(u8), &data);
|
||||
reg_off, reg, sizeof(u8), &data);
|
||||
}
|
||||
|
||||
int vnt_control_in(struct vnt_private *priv, u8 request, u16 value,
|
||||
u16 index, u16 length, u8 *buffer)
|
||||
u16 index, u16 length, u8 *buffer)
|
||||
{
|
||||
int status;
|
||||
|
||||
@ -82,8 +82,8 @@ int vnt_control_in(struct vnt_private *priv, u8 request, u16 value,
|
||||
mutex_lock(&priv->usb_lock);
|
||||
|
||||
status = usb_control_msg(priv->usb,
|
||||
usb_rcvctrlpipe(priv->usb, 0), request, 0xc0, value,
|
||||
index, buffer, length, USB_CTL_WAIT);
|
||||
usb_rcvctrlpipe(priv->usb, 0), request, 0xc0, value,
|
||||
index, buffer, length, USB_CTL_WAIT);
|
||||
|
||||
mutex_unlock(&priv->usb_lock);
|
||||
|
||||
@ -96,7 +96,7 @@ int vnt_control_in(struct vnt_private *priv, u8 request, u16 value,
|
||||
void vnt_control_in_u8(struct vnt_private *priv, u8 reg, u8 reg_off, u8 *data)
|
||||
{
|
||||
vnt_control_in(priv, MESSAGE_TYPE_READ,
|
||||
reg_off, reg, sizeof(u8), data);
|
||||
reg_off, reg, sizeof(u8), data);
|
||||
}
|
||||
|
||||
static void vnt_start_interrupt_urb_complete(struct urb *urb)
|
||||
|
@ -139,7 +139,7 @@ void vnt_run_command(struct work_struct *work)
|
||||
|
||||
case WLAN_CMD_CHANGE_ANTENNA_START:
|
||||
dev_dbg(&priv->usb->dev, "Change from Antenna%d to",
|
||||
priv->rx_antenna_sel);
|
||||
priv->rx_antenna_sel);
|
||||
|
||||
if (priv->rx_antenna_sel == 0) {
|
||||
priv->rx_antenna_sel = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user