Rename the defined constant OFDM_Table_Length to OFDM_TABLE_LENGTH, this clears the checkpatch issue with CamelCase naming. This is a simple coding style change which should not impact runtime code execution. Signed-off-by: John Whitmore <johnfwhitmore@xxxxxxxxx> --- drivers/staging/rtl8192u/r8192U.h | 2 +- drivers/staging/rtl8192u/r8192U_dm.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/rtl8192u/r8192U.h b/drivers/staging/rtl8192u/r8192U.h index 87c1a69b2e1c..6edbc8146e82 100644 --- a/drivers/staging/rtl8192u/r8192U.h +++ b/drivers/staging/rtl8192u/r8192U.h @@ -152,7 +152,7 @@ extern u32 rt_global_debug_component; #define IEEE80211_WATCH_DOG_TIME 2000 #define PHY_BEACON_RSSI_SLID_WIN_MAX 10 /* For Tx Power Tracking */ -#define OFDM_Table_Length 19 +#define OFDM_TABLE_LENGTH 19 #define CCK_Table_length 12 /* For rtl819x */ diff --git a/drivers/staging/rtl8192u/r8192U_dm.c b/drivers/staging/rtl8192u/r8192U_dm.c index 5fb5f583f703..19b3b11c5edb 100644 --- a/drivers/staging/rtl8192u/r8192U_dm.c +++ b/drivers/staging/rtl8192u/r8192U_dm.c @@ -454,7 +454,7 @@ static void dm_bandwidth_autoswitch(struct net_device *dev) } /* dm_BandwidthAutoSwitch */ /* OFDM default at 0db, index=6. */ -static u32 OFDMSwingTable[OFDM_Table_Length] = { +static u32 OFDMSwingTable[OFDM_TABLE_LENGTH] = { 0x7f8001fe, /* 0, +6db */ 0x71c001c7, /* 1, +5db */ 0x65400195, /* 2, +4db */ @@ -672,7 +672,7 @@ static void dm_TXPowerTrackingCallback_ThermalMeter(struct net_device *dev) if (!priv->btxpower_trackingInit) { /* Query OFDM default setting */ tmpRegA = rtl8192_QueryBBReg(dev, rOFDM0_XATxIQImbalance, bMaskDWord); - for (i = 0; i < OFDM_Table_Length; i++) { /* find the index */ + for (i = 0; i < OFDM_TABLE_LENGTH; i++) { /* find the index */ if (tmpRegA == OFDMSwingTable[i]) { priv->OFDM_index = (u8)i; RT_TRACE(COMP_POWER_TRACKING, "Initial reg0x%x = 0x%x, OFDM_index=0x%x\n", @@ -716,8 +716,8 @@ static void dm_TXPowerTrackingCallback_ThermalMeter(struct net_device *dev) if (priv->ThermalMeter[0] >= (u8)tmpRegA) { /* lower temperature */ tmpOFDMindex = tmpCCK20Mindex = 6+(priv->ThermalMeter[0]-(u8)tmpRegA); tmpCCK40Mindex = tmpCCK20Mindex - 6; - if (tmpOFDMindex >= OFDM_Table_Length) - tmpOFDMindex = OFDM_Table_Length-1; + if (tmpOFDMindex >= OFDM_TABLE_LENGTH) + tmpOFDMindex = OFDM_TABLE_LENGTH - 1; if (tmpCCK20Mindex >= CCK_Table_length) tmpCCK20Mindex = CCK_Table_length-1; if (tmpCCK40Mindex >= CCK_Table_length) -- 2.18.0 _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel