Commit 7c671608 authored by John Whitmore's avatar John Whitmore Committed by Greg Kroah-Hartman

staging:rtl8192u: Rename PHY_SetRF8256Bandwidth() - Style

Rename the function PHY_SetRF8256Bandwidth() to
phy_set_rf8256_bandwidth(). This change clears the checkpatch issue
with CamelCase naming.

The parameter Bandwidth has been renamed to bandwidth, for the
same reason.

Additionally a new line has been added to the parameter list of the
function declaration in r8190_rtl8256.h to truncate the line length
to the checkpatch limit.

These changes are simple coding style changes which should have no
impact on runtime code execution.
Signed-off-by: default avatarJohn Whitmore <johnfwhitmore@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1e7b06f0
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
* Note: 8226 support both 20M and 40 MHz * Note: 8226 support both 20M and 40 MHz
*-------------------------------------------------------------------------- *--------------------------------------------------------------------------
*/ */
void PHY_SetRF8256Bandwidth(struct net_device *dev, enum ht_channel_width Bandwidth) void phy_set_rf8256_bandwidth(struct net_device *dev, enum ht_channel_width Bandwidth)
{ {
u8 eRFPath; u8 eRFPath;
struct r8192_priv *priv = ieee80211_priv(dev); struct r8192_priv *priv = ieee80211_priv(dev);
...@@ -53,7 +53,7 @@ void PHY_SetRF8256Bandwidth(struct net_device *dev, enum ht_channel_width Bandwi ...@@ -53,7 +53,7 @@ void PHY_SetRF8256Bandwidth(struct net_device *dev, enum ht_channel_width Bandwi
(enum rf90_radio_path_e)eRFPath, (enum rf90_radio_path_e)eRFPath,
0x14, bMask12Bits, 0x5ab); 0x14, bMask12Bits, 0x5ab);
} else { } else {
RT_TRACE(COMP_ERR, "PHY_SetRF8256Bandwidth(): unknown hardware version\n"); RT_TRACE(COMP_ERR, "phy_set_rf8256_bandwidth(): unknown hardware version\n");
} }
break; break;
case HT_CHANNEL_WIDTH_20_40: case HT_CHANNEL_WIDTH_20_40:
...@@ -68,11 +68,11 @@ void PHY_SetRF8256Bandwidth(struct net_device *dev, enum ht_channel_width Bandwi ...@@ -68,11 +68,11 @@ void PHY_SetRF8256Bandwidth(struct net_device *dev, enum ht_channel_width Bandwi
else else
rtl8192_phy_SetRFReg(dev, (enum rf90_radio_path_e)eRFPath, 0x14, bMask12Bits, 0x5ab); rtl8192_phy_SetRFReg(dev, (enum rf90_radio_path_e)eRFPath, 0x14, bMask12Bits, 0x5ab);
} else { } else {
RT_TRACE(COMP_ERR, "PHY_SetRF8256Bandwidth(): unknown hardware version\n"); RT_TRACE(COMP_ERR, "phy_set_rf8256_bandwidth(): unknown hardware version\n");
} }
break; break;
default: default:
RT_TRACE(COMP_ERR, "PHY_SetRF8256Bandwidth(): unknown Bandwidth: %#X\n", Bandwidth); RT_TRACE(COMP_ERR, "phy_set_rf8256_bandwidth(): unknown Bandwidth: %#X\n", Bandwidth);
break; break;
} }
......
...@@ -14,7 +14,8 @@ ...@@ -14,7 +14,8 @@
#define RTL8225H #define RTL8225H
#define RTL819X_TOTAL_RF_PATH 2 /* for 8192U */ #define RTL819X_TOTAL_RF_PATH 2 /* for 8192U */
void PHY_SetRF8256Bandwidth(struct net_device *dev, enum ht_channel_width Bandwidth); void phy_set_rf8256_bandwidth(struct net_device *dev,
enum ht_channel_width bandwidth);
void PHY_RF8256_Config(struct net_device *dev); void PHY_RF8256_Config(struct net_device *dev);
void phy_RF8256_Config_ParaFile(struct net_device *dev); void phy_RF8256_Config_ParaFile(struct net_device *dev);
void PHY_SetRF8256CCKTxPower(struct net_device *dev, u8 powerlevel); void PHY_SetRF8256CCKTxPower(struct net_device *dev, u8 powerlevel);
......
...@@ -1634,7 +1634,7 @@ void rtl8192_SetBWModeWorkItem(struct net_device *dev) ...@@ -1634,7 +1634,7 @@ void rtl8192_SetBWModeWorkItem(struct net_device *dev)
break; break;
case RF_8256: case RF_8256:
PHY_SetRF8256Bandwidth(dev, priv->CurrentChannelBW); phy_set_rf8256_bandwidth(dev, priv->CurrentChannelBW);
break; break;
case RF_8258: case RF_8258:
......
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