aboutsummaryrefslogtreecommitdiff
path: root/drivers/staging/winbond/wbhal.c
diff options
context:
space:
mode:
authorPekka Enberg <penberg@cs.helsinki.fi>2008-10-27 22:46:39 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2009-01-06 13:51:43 -0800
commit279b6ccc002f87e1c127f372f73c95d026fd1803 (patch)
treecb3dbab3e2b8c8bcaf7fc338b4d1c35e0db54bad /drivers/staging/winbond/wbhal.c
parent9ce9ed5d8d71c1aa43ba947944b655e5c164ef54 (diff)
Staging: w35und: remove true/false boolean macros
Use the kernel built-in true and false boolean values instead of duplicating them in the driver code. Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi> Acked-by: Pavel Machek <pavel@suse.cz> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/winbond/wbhal.c')
-rw-r--r--drivers/staging/winbond/wbhal.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/staging/winbond/wbhal.c b/drivers/staging/winbond/wbhal.c
index c8da1a3fcd1..69dcedf3c2d 100644
--- a/drivers/staging/winbond/wbhal.c
+++ b/drivers/staging/winbond/wbhal.c
@@ -56,19 +56,19 @@ u8 hal_init_hardware(phw_data_t pHwData, struct wb35_adapter * adapter)
// Try to make sure the EEPROM contain
SoftwareSet >>= 8;
if( SoftwareSet != 0x82 )
- return FALSE;
+ return false;
#endif
Wb35Rx_start( pHwData );
Wb35Tx_EP2VM_start( pHwData );
- return TRUE;
+ return true;
}
}
}
pHwData->SurpriseRemove = 1;
- return FALSE;
+ return false;
}
@@ -312,7 +312,7 @@ u8 hal_get_accept_beacon( phw_data_t pHwData )
unsigned char hal_reset_hardware( phw_data_t pHwData, void* ppa )
{
// Not implement yet
- return TRUE;
+ return true;
}
void hal_stop( phw_data_t pHwData )
@@ -335,9 +335,9 @@ unsigned char hal_idle(phw_data_t pHwData)
PWBUSB pWbUsb = &pHwData->WbUsb;
if( !pHwData->SurpriseRemove && ( pWbUsb->DetectCount || reg->EP0vm_state!=VM_STOP ) )
- return FALSE;
+ return false;
- return TRUE;
+ return true;
}
//---------------------------------------------------------------------------------------------------
void hal_set_cwmin( phw_data_t pHwData, u8 cwin_min )
@@ -868,6 +868,6 @@ unsigned char hal_set_LED(phw_data_t pHwData, u32 Mode) // 20061108 for WPS led
pHwData->LED_Blinking = 0;
pHwData->LED_control = Mode;
OS_TIMER_SET( &pHwData->LEDTimer, 10 ); // 20060623
- return TRUE;
+ return true;
}