Aaro Koskinen
7c5c07a611
staging: xgifb: eliminate pVBInfo->UpdateCRT1
...
Access XGI_UpdateCRT1Table directly and make it const.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:54:20 -08:00
Aaro Koskinen
7853bced96
staging: xgifb: eliminate pVBInfo->XGINEWUB_CRT1Table
...
Access XGI_CRT1Table directly and make it const.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:54:20 -08:00
Aaro Koskinen
a39325d24f
staging: xgifb: eliminate pVBInfo->RefIndex
...
Access XGI330_RefIndex directly and make it const.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:54:20 -08:00
Aaro Koskinen
b397992e88
staging: xgifb: eliminate pVBInfo->EModeIDTable
...
Access XGI330_EModeIDTable directly and make it const.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:54:19 -08:00
Aaro Koskinen
3625c9a782
staging: xgifb: eliminate pVBInfo->StandTable
...
Access XGI330_StandTable directly and make it const.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:54:19 -08:00
Aaro Koskinen
6154e7f48a
staging: xgifb: eliminate global TimingV/TimingH data
...
Use private data instead of global variables for timing data. Also,
get rid of the single element arrays.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:54:19 -08:00
Aaro Koskinen
6008f87765
staging: xgifb: refactor XGI_GetLVDSData()
...
Refactor XGI_GetLVDSData() to avoid nesting and redundant ifs.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:54:19 -08:00
Aaro Koskinen
bdb381ec74
staging: xgifb: vb_init.h: delete redundant declaration
...
XGI21_LCDCapList does not exist.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:54:19 -08:00
Aaro Koskinen
bdc9eb142c
staging: xgifb: constify LCD data
...
Make read-only LCD data tables const.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:54:19 -08:00
Aaro Koskinen
9d1c629925
staging: xgifb: XGI_GetLcdPtr: pass the table pointer directly
...
Let the caller pass the table pointer directly instead of using a magic
number to indicate which table to use.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:54:18 -08:00
Aaro Koskinen
6c27b37091
staging: xgifb: XGI_GetLcdPtr: delete redundant code
...
tempal is a write-only stack variable, and code touching it can be
deleted.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:54:18 -08:00
Aaro Koskinen
4736783cca
staging: xgifb: XGI_GetLcdPtr: use real pointers for data tables
...
Use real pointers for LCD data tables to simplify the code.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:54:18 -08:00
Aaro Koskinen
515e9a603f
staging: xgifb: XGI_GetLcdPtr: replace xgifb_epllcd_crt1
...
Replace xgifb_epllcd_crt1 with two different tables to make further
cleanups easier.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:54:18 -08:00
Aaro Koskinen
3e779fc949
staging: xgifb: XGI_GetLcdPtr: add separate table for VB_SIS301LV/VB_SIS302LV
...
Add a separate data table for VB_SIS301LV/VB_SIS302LV to avoid branching
and to make further cleanups easier.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:54:18 -08:00
Malcolm Priestley
f1426fd7cc
staging: vt6656: Remove WPA_SUPPLICANT_DRIVER_WEXT_SUPPORT macro
...
Already removed in parts of driver.
Removed in remainder.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:52:58 -08:00
Malcolm Priestley
70e227790d
staging: vt6656: 64bit fixes: vCommandTimerWait change calculation of timer.
...
The timer appears to run too fast/race on 64 bit systems.
Using msecs_to_jiffies seems to cause a deadlock on 64 bit.
A calculation of (MSecond * HZ) / 1000 appears to run satisfactory.
Change BSSIDInfoCount to u32.
After this patch the driver can be successfully connect on little endian 64/32 bit systems.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:51:32 -08:00
Malcolm Priestley
1d651be13f
staging: vt6656: 64 bit fixes correct sizes of NDIS_802_11_ASSOCIATION_INFORMATION
...
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:51:32 -08:00
Malcolm Priestley
2f88964281
staging: vt6656: 64 bit fixes TKIPvMixKey remove unsigned long
...
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:51:31 -08:00
Malcolm Priestley
d5bbef7c94
staging: vt6656: 64 bit fixes pdwIV is now u32
...
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:51:31 -08:00
Malcolm Priestley
c0d05b305b
staging: vt6656: 64bit fixes: key.c/h change unsigned long to u32
...
Fixes long issues.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:51:31 -08:00
Malcolm Priestley
b4dc03af55
staging: vt6656: 64 bit fixes: fix long warning messages.
...
Fixes long warning messages from patch
[PATCH 08/14] staging: vt6656: 64 bit fixes : correct all type sizes
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:51:31 -08:00
Malcolm Priestley
7730492855
staging: vt6656: 64 bit fixes : correct all type sizes
...
After this patch all BYTE/WORD/DWORD types can be replaced with the appropriate u sizes.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:51:31 -08:00
Malcolm Priestley
21814d6c45
staging: vt6656: 64 bit fixes: int.h replaced DWORD with u32
...
Fixes size of long issues.
Signed-off-by: Malcolm Priestley<tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:51:31 -08:00
Malcolm Priestley
ed74395ca4
staging: vt6656: 64 bit fixes: rxtx.h Replace DWORD with u32.
...
Size of long issues.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:51:30 -08:00
Malcolm Priestley
a552397d5e
staging: vt6656: 64 bit fixes: use u32 for QWORD definition.
...
Size of long issues replace with u32.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:51:30 -08:00
Malcolm Priestley
cf5d170e02
staging: vt6656: 64 bit fixes: RXbBulkInProcessData Framesize
...
Size of long issues.
Framesize correction replace DWORD with u32.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:51:30 -08:00
Malcolm Priestley
d3b6f870ee
staging: vt6656: 64bit fixes: desh.h fix size. replace DWORD with u32.
...
Fixes size of long issues replace DWORD with u32.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:51:30 -08:00
Malcolm Priestley
eb304bddc4
staging: vt6656: 64bit fixes: dpc.c incorrect addressing of void structure.
...
Fixes the deadlock on 64 bit.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:51:30 -08:00
Malcolm Priestley
e2efba763b
staging: vt6656: 64 bit- Correctly address void structure.
...
Fixes 64 bit deadlock on successful association.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:51:30 -08:00
Malcolm Priestley
0421226828
staging: vt6656: fix viawget_wpa_param size
...
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:45:44 -08:00
Malcolm Priestley
d77fb7f756
staging: vt6656: nsDMA_tx_packet: free tx context bBoolInUse
...
This reduces the number of free TX urbs when key is not found.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:45:44 -08:00
Malcolm Priestley
bebbb29c96
staging: vt6656: dead code byCntMeasure/TKIPCounterMeasuresInvoked
...
remove TKIPCounterMeasuresInvoked and byCntMeasure
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:45:43 -08:00
Malcolm Priestley
95e40c7a16
staging: vt6656: dead code remove upc.h
...
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:45:43 -08:00
Malcolm Priestley
28044e0193
staging: vt6656: free skbuff and relocate on bReAllocSkb == FALSE.
...
bReAllocSkb == FALSE is when data is not fed to user land.
Free and relocate skbuff.
Where data is not sent return = FALSE from RXbBulkInProcessData.
This appears to reduce false errors when a reused skbuff has old data.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:45:43 -08:00
Malcolm Priestley
87c629853e
staging: vt6656: no need to bIndicateReceive when no bytes to read.
...
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:45:43 -08:00
Maxim Mikityanskiy
fbce428a07
staging: rtl8187se: Fixed size of BEACON_INTERVAL register
...
BEACON_INTERVAL register is 16-bit, not 32-bit
Signed-off-by: Maxim Mikityanskiy <maxtram95@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:41:59 -08:00
Maxim Mikityanskiy
53094af120
staging: rtl8187se: Removed empty stub read_acadapter_file()
...
Removed empty read_acadapter_file() and priv->PowerProfile that never
changes its value
Signed-off-by: Maxim Mikityanskiy <maxtram95@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:41:59 -08:00
Maxim Mikityanskiy
861437d2be
staging: rtl8187se: Removed unused fields in r8180_priv
...
Removed unused fields in r8180_priv and dead code that appeared after
field removal
Signed-off-by: Maxim Mikityanskiy <maxtram95@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:41:59 -08:00
Maxim Mikityanskiy
3044e45762
staging: rtl8187se: Removed unneeded reads from EEPROM
...
Removed unneeded reads from EEPROM and some unnecessary conditions
Signed-off-by: Maxim Mikityanskiy <maxtram95@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:41:58 -08:00
Maxim Mikityanskiy
dfd6aefb89
staging: rtl8187se: Use ARRAY_SIZE instead of in-code constants
...
Use ARRAY_SIZE macro instead of hardcoding array size into loop
condition and remove unused last item of rtl8225z2_rxgain[]
Signed-off-by: Maxim Mikityanskiy <maxtram95@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:41:58 -08:00
Maxim Mikityanskiy
4dffbc3d28
staging: rtl8187se: Removed unused arrays in r8180_rtl8225z2.c
...
Signed-off-by: Maxim Mikityanskiy <maxtram95@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:41:58 -08:00
Maxim Mikityanskiy
2296beb034
staging: rtl8187se: Removed non-existent function headers from r8180.h
...
Cleaned up r8180.h header file by removing headers of functions that
don't exist
Signed-off-by: Maxim Mikityanskiy <maxtram95@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:41:58 -08:00
Maxim Mikityanskiy
42af49901a
staging: rtl8187se: Fixed typo in TransmitConfig
...
Fixed typo in TransmitConfig and removed always false condition
Signed-off-by: Maxim Mikityanskiy <maxtram95@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:41:58 -08:00
Maxim Mikityanskiy
0d50168d1b
staging: rtl8187se: Removed unused parameters of HwHSSIThreeWire()
...
Removed two parameters of HwHSSIThreeWire() that are equal in all
function calls, fixed return type, fixed register width and simplified
code
Signed-off-by: Maxim Mikityanskiy <maxtram95@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:41:58 -08:00
Maxim Mikityanskiy
b9ce05eef9
staging: rtl8187se: Removed dead code
...
Removed some unused functions, arrays and #define in r8180_core.c
Signed-off-by: Maxim Mikityanskiy <maxtram95@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:41:57 -08:00
Maxim Mikityanskiy
5faca16ad7
staging: rtl8187se: Removed unused module parameters and fixed module description
...
Removed confusing and unimplemented module parameters and fix NIC name
in module description
Signed-off-by: Maxim Mikityanskiy <maxtram95@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:40:00 -08:00
Maxim Mikityanskiy
17e81bd3d3
staging: rtl8187se: Fixed oops when rmmoding
...
Don't remove procfs entry that is never created
Signed-off-by: Maxim Mikityanskiy <maxtram95@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:40:00 -08:00
Maxim Mikityanskiy
d4457a8e42
staging: rtl8187se: Simplified function GetSupportedWirelessMode8185()
...
Removed unnecessary variable in GetSupportedWirelessMode8185() and
shortened its code
Signed-off-by: Maxim Mikityanskiy <maxtram95@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:40:00 -08:00
Maxim Mikityanskiy
ddedb78aac
staging: rtl8187se: Fixed bugs in interrupt handler
...
Fixed typo in rtl8180_interrupt() and added missing line
Signed-off-by: Maxim Mikityanskiy <maxtram95@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:40:00 -08:00
Maxim Mikityanskiy
bf5bff4779
staging: rtl8187se: Removed empty functions and one-iteration loop
...
Removed empty functions, their calls and 'do {} while (0)' loop
condition
Signed-off-by: Maxim Mikityanskiy <maxtram95@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:40:00 -08:00