diff options
| author | 2014-05-16 10:03:43 +0200 | |
|---|---|---|
| committer | 2014-05-16 11:34:20 -0700 | |
| commit | f8c41a92fb741e1592801223bd75b432dca7ae4b (patch) | |
| tree | 709b47c652a7b8dabe509b13bd1bc5a56e8474e0 | |
| parent | staging: rtl8723au: rtw_sreset.h: Use BIT() instead of BITx (diff) | |
staging: rtl8723au: rtl8723au_led.c: Use BIT() instead of BITx
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
| -rw-r--r-- | drivers/staging/rtl8723au/hal/rtl8723au_led.c | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/drivers/staging/rtl8723au/hal/rtl8723au_led.c b/drivers/staging/rtl8723au/hal/rtl8723au_led.c index 4d5c909487f8..b06905d019d3 100644 --- a/drivers/staging/rtl8723au/hal/rtl8723au_led.c +++ b/drivers/staging/rtl8723au/hal/rtl8723au_led.c @@ -41,14 +41,17 @@ void SwLedOn23a(struct rtw_adapter *padapter, struct led_8723a *pLed) case LED_PIN_GPIO0: break; case LED_PIN_LED0: - rtw_write8(padapter, REG_LEDCFG0, (LedCfg&0xf0)|BIT5|BIT6); /* SW control led0 on. */ + /* SW control led0 on. */ + rtw_write8(padapter, REG_LEDCFG0, (LedCfg&0xf0)|BIT(5)|BIT(6)); break; case LED_PIN_LED1: - rtw_write8(padapter, REG_LEDCFG1, (LedCfg&0x00)|BIT6); /* SW control led1 on. */ + /* SW control led1 on. */ + rtw_write8(padapter, REG_LEDCFG1, (LedCfg&0x00)|BIT(6)); break; case LED_PIN_LED2: LedCfg = rtw_read8(padapter, REG_LEDCFG2); - rtw_write8(padapter, REG_LEDCFG2, (LedCfg&0x80)|BIT5); /* SW control led1 on. */ + /* SW control led1 on. */ + rtw_write8(padapter, REG_LEDCFG2, (LedCfg&0x80)|BIT(5)); break; default: break; @@ -70,14 +73,17 @@ void SwLedOff23a(struct rtw_adapter *padapter, struct led_8723a *pLed) case LED_PIN_GPIO0: break; case LED_PIN_LED0: - rtw_write8(padapter, REG_LEDCFG0, (LedCfg&0xf0)|BIT5|BIT6); /* SW control led0 on. */ + /* SW control led0 on. */ + rtw_write8(padapter, REG_LEDCFG0, (LedCfg&0xf0)|BIT(5)|BIT(6)); break; case LED_PIN_LED1: - rtw_write8(padapter, REG_LEDCFG1, (LedCfg&0x00)|BIT5|BIT6); /* SW control led1 on. */ + /* SW control led1 on. */ + rtw_write8(padapter, REG_LEDCFG1, (LedCfg&0x00)|BIT(5)|BIT(6)); break; case LED_PIN_LED2: LedCfg = rtw_read8(padapter, REG_LEDCFG2); - rtw_write8(padapter, REG_LEDCFG2, (LedCfg&0x80)|BIT3|BIT5); /* SW control led1 on. */ + /* SW control led1 on. */ + rtw_write8(padapter, REG_LEDCFG2, (LedCfg&0x80)|BIT(3)|BIT(5)); break; default: break; |
