Commit 93270634 authored by Janusz Lisiecki's avatar Janusz Lisiecki Committed by Greg Kroah-Hartman

staging: ks7010: avoid CamelCase in fields of struct local_gain_t

Replace CamelCase fields of struct with underscores to comply
with the standard kernel coding style
Signed-off-by: default avatarJanusz Lisiecki <janusz.lisiecki@gmail.com>
Reviewed-by: default avatarTobin C. Harding <me@tobin.cc>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d9d1ffd4
......@@ -567,9 +567,9 @@ void hostif_mib_get_confirm(struct ks_wlan_private *priv)
break;
case LOCAL_GAIN:
memcpy(&priv->gain, priv->rxp, sizeof(priv->gain));
DPRINTK(3, "TxMode=%d, RxMode=%d, TxGain=%d, RxGain=%d\n",
priv->gain.TxMode, priv->gain.RxMode, priv->gain.TxGain,
priv->gain.RxGain);
DPRINTK(3, "tx_mode=%d, rx_mode=%d, tx_gain=%d, rx_gain=%d\n",
priv->gain.tx_mode, priv->gain.rx_mode,
priv->gain.tx_gain, priv->gain.rx_gain);
break;
case LOCAL_EEPROM_SUM:
memcpy(&priv->eeprom_sum, priv->rxp, sizeof(priv->eeprom_sum));
......
......@@ -264,10 +264,10 @@ struct local_aplist_t {
};
struct local_gain_t {
u8 TxMode;
u8 RxMode;
u8 TxGain;
u8 RxGain;
u8 tx_mode;
u8 rx_mode;
u8 tx_gain;
u8 rx_gain;
};
struct local_eeprom_sum_t {
......
......@@ -2378,14 +2378,14 @@ static int ks_wlan_set_tx_gain(struct net_device *dev,
return -EPERM;
/* for SLEEP MODE */
if (*uwrq >= 0 && *uwrq <= 0xFF) /* 0-255 */
priv->gain.TxGain = (uint8_t)*uwrq;
priv->gain.tx_gain = (uint8_t)*uwrq;
else
return -EINVAL;
if (priv->gain.TxGain < 0xFF)
priv->gain.TxMode = 1;
if (priv->gain.tx_gain < 0xFF)
priv->gain.tx_mode = 1;
else
priv->gain.TxMode = 0;
priv->gain.tx_mode = 0;
hostif_sme_enqueue(priv, SME_SET_GAIN);
return 0;
......@@ -2400,7 +2400,7 @@ static int ks_wlan_get_tx_gain(struct net_device *dev,
if (priv->sleep_mode == SLP_SLEEP)
return -EPERM;
/* for SLEEP MODE */
*uwrq = priv->gain.TxGain;
*uwrq = priv->gain.tx_gain;
hostif_sme_enqueue(priv, SME_GET_GAIN);
return 0;
}
......@@ -2415,14 +2415,14 @@ static int ks_wlan_set_rx_gain(struct net_device *dev,
return -EPERM;
/* for SLEEP MODE */
if (*uwrq >= 0 && *uwrq <= 0xFF) /* 0-255 */
priv->gain.RxGain = (uint8_t)*uwrq;
priv->gain.rx_gain = (uint8_t)*uwrq;
else
return -EINVAL;
if (priv->gain.RxGain < 0xFF)
priv->gain.RxMode = 1;
if (priv->gain.rx_gain < 0xFF)
priv->gain.rx_mode = 1;
else
priv->gain.RxMode = 0;
priv->gain.rx_mode = 0;
hostif_sme_enqueue(priv, SME_SET_GAIN);
return 0;
......@@ -2437,7 +2437,7 @@ static int ks_wlan_get_rx_gain(struct net_device *dev,
if (priv->sleep_mode == SLP_SLEEP)
return -EPERM;
/* for SLEEP MODE */
*uwrq = priv->gain.RxGain;
*uwrq = priv->gain.rx_gain;
hostif_sme_enqueue(priv, SME_GET_GAIN);
return 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