| .. | .. |
|---|
| 1 | | -/****************************************************************************** |
|---|
| 2 | | - * |
|---|
| 3 | | - * Copyright(c) 2009-2012 Realtek Corporation. |
|---|
| 4 | | - * |
|---|
| 5 | | - * This program is free software; you can redistribute it and/or modify it |
|---|
| 6 | | - * under the terms of version 2 of the GNU General Public License as |
|---|
| 7 | | - * published by the Free Software Foundation. |
|---|
| 8 | | - * |
|---|
| 9 | | - * This program is distributed in the hope that it will be useful, but WITHOUT |
|---|
| 10 | | - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|---|
| 11 | | - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
|---|
| 12 | | - * more details. |
|---|
| 13 | | - * |
|---|
| 14 | | - * The full GNU General Public License is included in this distribution in the |
|---|
| 15 | | - * file called LICENSE. |
|---|
| 16 | | - * |
|---|
| 17 | | - * Contact Information: |
|---|
| 18 | | - * wlanfae <wlanfae@realtek.com> |
|---|
| 19 | | - * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park, |
|---|
| 20 | | - * Hsinchu 300, Taiwan. |
|---|
| 21 | | - * |
|---|
| 22 | | - * Larry Finger <Larry.Finger@lwfinger.net> |
|---|
| 23 | | - * |
|---|
| 24 | | - *****************************************************************************/ |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0 |
|---|
| 2 | +/* Copyright(c) 2009-2012 Realtek Corporation.*/ |
|---|
| 25 | 3 | |
|---|
| 26 | 4 | #include "../wifi.h" |
|---|
| 27 | 5 | #include "../pci.h" |
|---|
| .. | .. |
|---|
| 41 | 19 | u8 ledcfg; |
|---|
| 42 | 20 | struct rtl_priv *rtlpriv = rtl_priv(hw); |
|---|
| 43 | 21 | |
|---|
| 44 | | - RT_TRACE(rtlpriv, COMP_LED, DBG_LOUD, |
|---|
| 45 | | - "LedAddr:%X ledpin=%d\n", REG_LEDCFG2, pled->ledpin); |
|---|
| 22 | + rtl_dbg(rtlpriv, COMP_LED, DBG_LOUD, |
|---|
| 23 | + "LedAddr:%X ledpin=%d\n", REG_LEDCFG2, pled->ledpin); |
|---|
| 46 | 24 | |
|---|
| 47 | 25 | switch (pled->ledpin) { |
|---|
| 48 | 26 | case LED_PIN_GPIO0: |
|---|
| .. | .. |
|---|
| 70 | 48 | struct rtl_priv *rtlpriv = rtl_priv(hw); |
|---|
| 71 | 49 | u8 ledcfg; |
|---|
| 72 | 50 | |
|---|
| 73 | | - RT_TRACE(rtlpriv, COMP_LED, DBG_LOUD, |
|---|
| 74 | | - "LedAddr:%X ledpin=%d\n", REG_LEDCFG2, pled->ledpin); |
|---|
| 51 | + rtl_dbg(rtlpriv, COMP_LED, DBG_LOUD, |
|---|
| 52 | + "LedAddr:%X ledpin=%d\n", REG_LEDCFG2, pled->ledpin); |
|---|
| 75 | 53 | |
|---|
| 76 | 54 | ledcfg = rtl_read_byte(rtlpriv, REG_LEDCFG2); |
|---|
| 77 | 55 | |
|---|
| .. | .. |
|---|
| 150 | 128 | ledaction == LED_CTL_POWER_ON)) { |
|---|
| 151 | 129 | return; |
|---|
| 152 | 130 | } |
|---|
| 153 | | - RT_TRACE(rtlpriv, COMP_LED, DBG_LOUD, "ledaction %d,\n", |
|---|
| 154 | | - ledaction); |
|---|
| 131 | + rtl_dbg(rtlpriv, COMP_LED, DBG_LOUD, "ledaction %d,\n", |
|---|
| 132 | + ledaction); |
|---|
| 155 | 133 | _rtl8723e_sw_led_control(hw, ledaction); |
|---|
| 156 | 134 | } |
|---|