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: Janusz Lisiecki <janusz.lisiecki@gmail.com>
Reviewed-by: Tobin C. Harding <me@tobin.cc>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Janusz Lisiecki 2017-04-29 22:58:41 +02:00 committed by Greg Kroah-Hartman
parent d9d1ffd4bf
commit 93270634a3
3 changed files with 17 additions and 17 deletions

View File

@ -567,9 +567,9 @@ void hostif_mib_get_confirm(struct ks_wlan_private *priv)
break; break;
case LOCAL_GAIN: case LOCAL_GAIN:
memcpy(&priv->gain, priv->rxp, sizeof(priv->gain)); memcpy(&priv->gain, priv->rxp, sizeof(priv->gain));
DPRINTK(3, "TxMode=%d, RxMode=%d, TxGain=%d, RxGain=%d\n", DPRINTK(3, "tx_mode=%d, rx_mode=%d, tx_gain=%d, rx_gain=%d\n",
priv->gain.TxMode, priv->gain.RxMode, priv->gain.TxGain, priv->gain.tx_mode, priv->gain.rx_mode,
priv->gain.RxGain); priv->gain.tx_gain, priv->gain.rx_gain);
break; break;
case LOCAL_EEPROM_SUM: case LOCAL_EEPROM_SUM:
memcpy(&priv->eeprom_sum, priv->rxp, sizeof(priv->eeprom_sum)); memcpy(&priv->eeprom_sum, priv->rxp, sizeof(priv->eeprom_sum));

View File

@ -264,10 +264,10 @@ struct local_aplist_t {
}; };
struct local_gain_t { struct local_gain_t {
u8 TxMode; u8 tx_mode;
u8 RxMode; u8 rx_mode;
u8 TxGain; u8 tx_gain;
u8 RxGain; u8 rx_gain;
}; };
struct local_eeprom_sum_t { struct local_eeprom_sum_t {

View File

@ -2378,14 +2378,14 @@ static int ks_wlan_set_tx_gain(struct net_device *dev,
return -EPERM; return -EPERM;
/* for SLEEP MODE */ /* for SLEEP MODE */
if (*uwrq >= 0 && *uwrq <= 0xFF) /* 0-255 */ if (*uwrq >= 0 && *uwrq <= 0xFF) /* 0-255 */
priv->gain.TxGain = (uint8_t)*uwrq; priv->gain.tx_gain = (uint8_t)*uwrq;
else else
return -EINVAL; return -EINVAL;
if (priv->gain.TxGain < 0xFF) if (priv->gain.tx_gain < 0xFF)
priv->gain.TxMode = 1; priv->gain.tx_mode = 1;
else else
priv->gain.TxMode = 0; priv->gain.tx_mode = 0;
hostif_sme_enqueue(priv, SME_SET_GAIN); hostif_sme_enqueue(priv, SME_SET_GAIN);
return 0; return 0;
@ -2400,7 +2400,7 @@ static int ks_wlan_get_tx_gain(struct net_device *dev,
if (priv->sleep_mode == SLP_SLEEP) if (priv->sleep_mode == SLP_SLEEP)
return -EPERM; return -EPERM;
/* for SLEEP MODE */ /* for SLEEP MODE */
*uwrq = priv->gain.TxGain; *uwrq = priv->gain.tx_gain;
hostif_sme_enqueue(priv, SME_GET_GAIN); hostif_sme_enqueue(priv, SME_GET_GAIN);
return 0; return 0;
} }
@ -2415,14 +2415,14 @@ static int ks_wlan_set_rx_gain(struct net_device *dev,
return -EPERM; return -EPERM;
/* for SLEEP MODE */ /* for SLEEP MODE */
if (*uwrq >= 0 && *uwrq <= 0xFF) /* 0-255 */ if (*uwrq >= 0 && *uwrq <= 0xFF) /* 0-255 */
priv->gain.RxGain = (uint8_t)*uwrq; priv->gain.rx_gain = (uint8_t)*uwrq;
else else
return -EINVAL; return -EINVAL;
if (priv->gain.RxGain < 0xFF) if (priv->gain.rx_gain < 0xFF)
priv->gain.RxMode = 1; priv->gain.rx_mode = 1;
else else
priv->gain.RxMode = 0; priv->gain.rx_mode = 0;
hostif_sme_enqueue(priv, SME_SET_GAIN); hostif_sme_enqueue(priv, SME_SET_GAIN);
return 0; return 0;
@ -2437,7 +2437,7 @@ static int ks_wlan_get_rx_gain(struct net_device *dev,
if (priv->sleep_mode == SLP_SLEEP) if (priv->sleep_mode == SLP_SLEEP)
return -EPERM; return -EPERM;
/* for SLEEP MODE */ /* for SLEEP MODE */
*uwrq = priv->gain.RxGain; *uwrq = priv->gain.rx_gain;
hostif_sme_enqueue(priv, SME_GET_GAIN); hostif_sme_enqueue(priv, SME_GET_GAIN);
return 0; return 0;
} }