Commit ccc5188a authored by Matthias Beyer's avatar Matthias Beyer Committed by Greg Kroah-Hartman

Staging: bcm: Misc whitespace fixes

Signed-off-by: default avatarMatthias Beyer <mail@beyermatthias.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1ecd083e
...@@ -776,7 +776,7 @@ int ddr_init(struct bcm_mini_adapter *Adapter) ...@@ -776,7 +776,7 @@ int ddr_init(struct bcm_mini_adapter *Adapter)
struct bcm_ddr_setting *psDDRSetting = NULL; struct bcm_ddr_setting *psDDRSetting = NULL;
ULONG RegCount = 0; ULONG RegCount = 0;
UINT value = 0; UINT value = 0;
UINT uiResetValue = 0; UINT uiResetValue = 0;
UINT uiClockSetting = 0; UINT uiClockSetting = 0;
int retval = STATUS_SUCCESS; int retval = STATUS_SUCCESS;
...@@ -785,17 +785,17 @@ int ddr_init(struct bcm_mini_adapter *Adapter) ...@@ -785,17 +785,17 @@ int ddr_init(struct bcm_mini_adapter *Adapter)
switch (Adapter->DDRSetting) { switch (Adapter->DDRSetting) {
case DDR_80_MHZ: case DDR_80_MHZ:
psDDRSetting = asT3LP_DDRSetting80MHz; psDDRSetting = asT3LP_DDRSetting80MHz;
RegCount = (sizeof(asT3LP_DDRSetting80MHz)/ RegCount = (sizeof(asT3LP_DDRSetting80MHz) /
sizeof(struct bcm_ddr_setting)); sizeof(struct bcm_ddr_setting));
break; break;
case DDR_100_MHZ: case DDR_100_MHZ:
psDDRSetting = asT3LP_DDRSetting100MHz; psDDRSetting = asT3LP_DDRSetting100MHz;
RegCount = (sizeof(asT3LP_DDRSetting100MHz)/ RegCount = (sizeof(asT3LP_DDRSetting100MHz) /
sizeof(struct bcm_ddr_setting)); sizeof(struct bcm_ddr_setting));
break; break;
case DDR_133_MHZ: case DDR_133_MHZ:
psDDRSetting = asT3LP_DDRSetting133MHz; psDDRSetting = asT3LP_DDRSetting133MHz;
RegCount = (sizeof(asT3LP_DDRSetting133MHz)/ RegCount = (sizeof(asT3LP_DDRSetting133MHz) /
sizeof(struct bcm_ddr_setting)); sizeof(struct bcm_ddr_setting));
if (Adapter->bMipsConfig == MIPS_200_MHZ) if (Adapter->bMipsConfig == MIPS_200_MHZ)
uiClockSetting = 0x03F13652; uiClockSetting = 0x03F13652;
...@@ -836,17 +836,17 @@ int ddr_init(struct bcm_mini_adapter *Adapter) ...@@ -836,17 +836,17 @@ int ddr_init(struct bcm_mini_adapter *Adapter)
case DDR_80_MHZ: case DDR_80_MHZ:
psDDRSetting = asT3LPB_DDRSetting80MHz; psDDRSetting = asT3LPB_DDRSetting80MHz;
RegCount = (sizeof(asT3B_DDRSetting80MHz)/ RegCount = (sizeof(asT3B_DDRSetting80MHz) /
sizeof(struct bcm_ddr_setting)); sizeof(struct bcm_ddr_setting));
break; break;
case DDR_100_MHZ: case DDR_100_MHZ:
psDDRSetting = asT3LPB_DDRSetting100MHz; psDDRSetting = asT3LPB_DDRSetting100MHz;
RegCount = (sizeof(asT3B_DDRSetting100MHz)/ RegCount = (sizeof(asT3B_DDRSetting100MHz) /
sizeof(struct bcm_ddr_setting)); sizeof(struct bcm_ddr_setting));
break; break;
case DDR_133_MHZ: case DDR_133_MHZ:
psDDRSetting = asT3LPB_DDRSetting133MHz; psDDRSetting = asT3LPB_DDRSetting133MHz;
RegCount = (sizeof(asT3B_DDRSetting133MHz)/ RegCount = (sizeof(asT3B_DDRSetting133MHz) /
sizeof(struct bcm_ddr_setting)); sizeof(struct bcm_ddr_setting));
if (Adapter->bMipsConfig == MIPS_200_MHZ) if (Adapter->bMipsConfig == MIPS_200_MHZ)
...@@ -875,17 +875,17 @@ int ddr_init(struct bcm_mini_adapter *Adapter) ...@@ -875,17 +875,17 @@ int ddr_init(struct bcm_mini_adapter *Adapter)
switch (Adapter->DDRSetting) { switch (Adapter->DDRSetting) {
case DDR_80_MHZ: case DDR_80_MHZ:
psDDRSetting = asT3_DDRSetting80MHz; psDDRSetting = asT3_DDRSetting80MHz;
RegCount = (sizeof(asT3_DDRSetting80MHz)/ RegCount = (sizeof(asT3_DDRSetting80MHz) /
sizeof(struct bcm_ddr_setting)); sizeof(struct bcm_ddr_setting));
break; break;
case DDR_100_MHZ: case DDR_100_MHZ:
psDDRSetting = asT3_DDRSetting100MHz; psDDRSetting = asT3_DDRSetting100MHz;
RegCount = (sizeof(asT3_DDRSetting100MHz)/ RegCount = (sizeof(asT3_DDRSetting100MHz) /
sizeof(struct bcm_ddr_setting)); sizeof(struct bcm_ddr_setting));
break; break;
case DDR_133_MHZ: case DDR_133_MHZ:
psDDRSetting = asT3_DDRSetting133MHz; psDDRSetting = asT3_DDRSetting133MHz;
RegCount = (sizeof(asT3_DDRSetting133MHz)/ RegCount = (sizeof(asT3_DDRSetting133MHz) /
sizeof(struct bcm_ddr_setting)); sizeof(struct bcm_ddr_setting));
break; break;
default: default:
...@@ -896,12 +896,12 @@ int ddr_init(struct bcm_mini_adapter *Adapter) ...@@ -896,12 +896,12 @@ int ddr_init(struct bcm_mini_adapter *Adapter)
switch (Adapter->DDRSetting) { switch (Adapter->DDRSetting) {
case DDR_80_MHZ: case DDR_80_MHZ:
psDDRSetting = asT3B_DDRSetting80MHz; psDDRSetting = asT3B_DDRSetting80MHz;
RegCount = (sizeof(asT3B_DDRSetting80MHz)/ RegCount = (sizeof(asT3B_DDRSetting80MHz) /
sizeof(struct bcm_ddr_setting)); sizeof(struct bcm_ddr_setting));
break; break;
case DDR_100_MHZ: case DDR_100_MHZ:
psDDRSetting = asT3B_DDRSetting100MHz; psDDRSetting = asT3B_DDRSetting100MHz;
RegCount = (sizeof(asT3B_DDRSetting100MHz)/ RegCount = (sizeof(asT3B_DDRSetting100MHz) /
sizeof(struct bcm_ddr_setting)); sizeof(struct bcm_ddr_setting));
break; break;
case DDR_133_MHZ: case DDR_133_MHZ:
...@@ -910,11 +910,11 @@ int ddr_init(struct bcm_mini_adapter *Adapter) ...@@ -910,11 +910,11 @@ int ddr_init(struct bcm_mini_adapter *Adapter)
memcpy(asT3B_DDRSetting133MHz, asDPLL_266MHZ, memcpy(asT3B_DDRSetting133MHz, asDPLL_266MHZ,
sizeof(asDPLL_266MHZ)); sizeof(asDPLL_266MHZ));
psDDRSetting = asT3B_DDRSetting133MHz; psDDRSetting = asT3B_DDRSetting133MHz;
RegCount = (sizeof(asT3B_DDRSetting133MHz)/ RegCount = (sizeof(asT3B_DDRSetting133MHz) /
sizeof(struct bcm_ddr_setting)); sizeof(struct bcm_ddr_setting));
} else { } else {
psDDRSetting = asT3B_DDRSetting133MHz; psDDRSetting = asT3B_DDRSetting133MHz;
RegCount = (sizeof(asT3B_DDRSetting133MHz)/ RegCount = (sizeof(asT3B_DDRSetting133MHz) /
sizeof(struct bcm_ddr_setting)); sizeof(struct bcm_ddr_setting));
if (Adapter->bMipsConfig == MIPS_200_MHZ) if (Adapter->bMipsConfig == MIPS_200_MHZ)
uiClockSetting = 0x07F13652; uiClockSetting = 0x07F13652;
...@@ -1068,7 +1068,7 @@ int download_ddr_settings(struct bcm_mini_adapter *Adapter) ...@@ -1068,7 +1068,7 @@ int download_ddr_settings(struct bcm_mini_adapter *Adapter)
struct bcm_ddr_setting *psDDRSetting = NULL; struct bcm_ddr_setting *psDDRSetting = NULL;
ULONG RegCount = 0; ULONG RegCount = 0;
unsigned long ul_ddr_setting_load_addr = DDR_DUMP_INTERNAL_DEVICE_MEMORY; unsigned long ul_ddr_setting_load_addr = DDR_DUMP_INTERNAL_DEVICE_MEMORY;
UINT value = 0; UINT value = 0;
int retval = STATUS_SUCCESS; int retval = STATUS_SUCCESS;
bool bOverrideSelfRefresh = false; bool bOverrideSelfRefresh = false;
...@@ -1222,9 +1222,9 @@ int download_ddr_settings(struct bcm_mini_adapter *Adapter) ...@@ -1222,9 +1222,9 @@ int download_ddr_settings(struct bcm_mini_adapter *Adapter)
break; break;
} }
} else { } else {
value = psDDRSetting->ulRegValue; value = psDDRSetting->ulRegValue;
if (STATUS_SUCCESS != wrmalt(Adapter, ul_ddr_setting_load_addr , if (STATUS_SUCCESS != wrmalt(Adapter, ul_ddr_setting_load_addr,
&value, sizeof(value))) { &value, sizeof(value))) {
BCM_DEBUG_PRINT(Adapter, DBG_TYPE_PRINTK, 0, 0, "%s:%d\n", __func__, __LINE__); BCM_DEBUG_PRINT(Adapter, DBG_TYPE_PRINTK, 0, 0, "%s:%d\n", __func__, __LINE__);
break; break;
...@@ -1235,5 +1235,5 @@ int download_ddr_settings(struct bcm_mini_adapter *Adapter) ...@@ -1235,5 +1235,5 @@ int download_ddr_settings(struct bcm_mini_adapter *Adapter)
RegCount--; RegCount--;
psDDRSetting++; psDDRSetting++;
} }
return retval; return retval;
} }
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