Commit c6bf6d2d authored by Scott Matheina's avatar Scott Matheina Committed by Greg Kroah-Hartman

staging:vt6656:main_usb.c Aligned code to match open parenthesis

Fixed Alignment should match open parenthesis from checkpatch
Signed-off-by: default avatarScott Matheina <scott@matheina.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0ef48913
...@@ -156,16 +156,17 @@ static int vnt_init_registers(struct vnt_private *priv) ...@@ -156,16 +156,17 @@ static int vnt_init_registers(struct vnt_private *priv)
init_cmd->long_retry_limit = priv->long_retry_limit; init_cmd->long_retry_limit = priv->long_retry_limit;
/* issue card_init command to device */ /* issue card_init command to device */
status = vnt_control_out(priv, status = vnt_control_out(priv, MESSAGE_TYPE_CARDINIT, 0, 0,
MESSAGE_TYPE_CARDINIT, 0, 0, sizeof(struct vnt_cmd_card_init),
sizeof(struct vnt_cmd_card_init), (u8 *)init_cmd); (u8 *)init_cmd);
if (status != STATUS_SUCCESS) { if (status != STATUS_SUCCESS) {
dev_dbg(&priv->usb->dev, "Issue Card init fail\n"); dev_dbg(&priv->usb->dev, "Issue Card init fail\n");
return false; return false;
} }
status = vnt_control_in(priv, MESSAGE_TYPE_INIT_RSP, 0, 0, status = vnt_control_in(priv, MESSAGE_TYPE_INIT_RSP, 0, 0,
sizeof(struct vnt_rsp_card_init), (u8 *)init_rsp); sizeof(struct vnt_rsp_card_init),
(u8 *)init_rsp);
if (status != STATUS_SUCCESS) { if (status != STATUS_SUCCESS) {
dev_dbg(&priv->usb->dev, dev_dbg(&priv->usb->dev,
"Cardinit request in status fail!\n"); "Cardinit request in status fail!\n");
...@@ -173,9 +174,8 @@ static int vnt_init_registers(struct vnt_private *priv) ...@@ -173,9 +174,8 @@ static int vnt_init_registers(struct vnt_private *priv)
} }
/* local ID for AES functions */ /* local ID for AES functions */
status = vnt_control_in(priv, MESSAGE_TYPE_READ, status = vnt_control_in(priv, MESSAGE_TYPE_READ, MAC_REG_LOCALID,
MAC_REG_LOCALID, MESSAGE_REQUEST_MACREG, 1, MESSAGE_REQUEST_MACREG, 1, &priv->local_id);
&priv->local_id);
if (status != STATUS_SUCCESS) if (status != STATUS_SUCCESS)
return false; return false;
...@@ -340,7 +340,8 @@ static int vnt_init_registers(struct vnt_private *priv) ...@@ -340,7 +340,8 @@ static int vnt_init_registers(struct vnt_private *priv)
if ((priv->radio_ctl & EEP_RADIOCTL_ENABLE) != 0) { if ((priv->radio_ctl & EEP_RADIOCTL_ENABLE) != 0) {
status = vnt_control_in(priv, MESSAGE_TYPE_READ, status = vnt_control_in(priv, MESSAGE_TYPE_READ,
MAC_REG_GPIOCTL1, MESSAGE_REQUEST_MACREG, 1, &tmp); MAC_REG_GPIOCTL1,
MESSAGE_REQUEST_MACREG, 1, &tmp);
if (status != STATUS_SUCCESS) if (status != STATUS_SUCCESS)
return false; return false;
...@@ -496,7 +497,8 @@ static bool vnt_alloc_bufs(struct vnt_private *priv) ...@@ -496,7 +497,8 @@ static bool vnt_alloc_bufs(struct vnt_private *priv)
} }
static void vnt_tx_80211(struct ieee80211_hw *hw, static void vnt_tx_80211(struct ieee80211_hw *hw,
struct ieee80211_tx_control *control, struct sk_buff *skb) struct ieee80211_tx_control *control,
struct sk_buff *skb)
{ {
struct vnt_private *priv = hw->priv; struct vnt_private *priv = hw->priv;
...@@ -682,8 +684,8 @@ static int vnt_config(struct ieee80211_hw *hw, u32 changed) ...@@ -682,8 +684,8 @@ static int vnt_config(struct ieee80211_hw *hw, u32 changed)
} }
static void vnt_bss_info_changed(struct ieee80211_hw *hw, static void vnt_bss_info_changed(struct ieee80211_hw *hw,
struct ieee80211_vif *vif, struct ieee80211_bss_conf *conf, struct ieee80211_vif *vif,
u32 changed) struct ieee80211_bss_conf *conf, u32 changed)
{ {
struct vnt_private *priv = hw->priv; struct vnt_private *priv = hw->priv;
...@@ -787,7 +789,8 @@ static u64 vnt_prepare_multicast(struct ieee80211_hw *hw, ...@@ -787,7 +789,8 @@ static u64 vnt_prepare_multicast(struct ieee80211_hw *hw,
} }
static void vnt_configure(struct ieee80211_hw *hw, static void vnt_configure(struct ieee80211_hw *hw,
unsigned int changed_flags, unsigned int *total_flags, u64 multicast) unsigned int changed_flags,
unsigned int *total_flags, u64 multicast)
{ {
struct vnt_private *priv = hw->priv; struct vnt_private *priv = hw->priv;
u8 rx_mode = 0; u8 rx_mode = 0;
......
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