linux/drivers/staging/rtl8188eu/hal/rtl8188eu_led.c
/*	Description: */
/*		Turn off LED according to LedPin specified. */
Turn off LED according to LedPin specified.
Turn off LED according to LedPin specified .
void SwLedOff(struct adapter *padapter, struct LED_871x *pLed)
{
	u8	LedCfg;
	if (padapter->bSurpriseRemoved || padapter->bDriverStopped)
		goto exit;
	LedCfg = usb_read8(padapter, REG_LEDCFG2);
	LedCfg &= 0x90; 
	usb_write8(padapter, REG_LEDCFG2, (LedCfg | BIT(3)));
	LedCfg = usb_read8(padapter, REG_MAC_PINMUX_CFG);
	LedCfg &= 0xFE;
	usb_write8(padapter, REG_MAC_PINMUX_CFG, LedCfg);
exit:
	pLed->bLedOn = false;
}
void SwLedOff ( struct adapter * padapter , struct LED_871x * pLed ) { u8 LedCfg ; if ( padapter -> bSurpriseRemoved || padapter -> bDriverStopped ) goto exit ; LedCfg = usb_read8 ( padapter , REG_LEDCFG2 ) ; LedCfg &= 0x90 ; usb_write8 ( padapter , REG_LEDCFG2 , ( LedCfg | BIT ( 3 ) ) ) ; LedCfg = usb_read8 ( padapter , REG_MAC_PINMUX_CFG ) ; LedCfg &= 0xFE ; usb_write8 ( padapter , REG_MAC_PINMUX_CFG , LedCfg ) ; exit : pLed -> bLedOn = false ; }
Description:
Turn off LED according to LedPin specified.
Description : Turn off LED according to LedPin specified .
/* 0x4E */ /*  Open-drain arrangement for controlling the LED) */ /*  Set to software control. */