.. | .. |
---|
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, "LedAddr:%X ledpin=%d\n", |
---|
45 | | - REG_LEDCFG2, pled->ledpin); |
---|
| 22 | + rtl_dbg(rtlpriv, COMP_LED, DBG_LOUD, "LedAddr:%X ledpin=%d\n", |
---|
| 23 | + REG_LEDCFG2, pled->ledpin); |
---|
46 | 24 | |
---|
47 | 25 | switch (pled->ledpin) { |
---|
48 | 26 | case LED_PIN_GPIO0: |
---|
.. | .. |
---|
78 | 56 | struct rtl_priv *rtlpriv = rtl_priv(hw); |
---|
79 | 57 | u8 ledcfg; |
---|
80 | 58 | |
---|
81 | | - RT_TRACE(rtlpriv, COMP_LED, DBG_LOUD, "LedAddr:%X ledpin=%d\n", |
---|
82 | | - REG_LEDCFG2, pled->ledpin); |
---|
| 59 | + rtl_dbg(rtlpriv, COMP_LED, DBG_LOUD, "LedAddr:%X ledpin=%d\n", |
---|
| 60 | + REG_LEDCFG2, pled->ledpin); |
---|
83 | 61 | |
---|
84 | 62 | ledcfg = rtl_read_byte(rtlpriv, REG_LEDCFG2); |
---|
85 | 63 | |
---|
.. | .. |
---|
150 | 128 | ledaction == LED_CTL_POWER_ON)) { |
---|
151 | 129 | return; |
---|
152 | 130 | } |
---|
153 | | - RT_TRACE(rtlpriv, COMP_LED, DBG_LOUD, "ledaction %d,\n", ledaction); |
---|
| 131 | + rtl_dbg(rtlpriv, COMP_LED, DBG_LOUD, "ledaction %d,\n", ledaction); |
---|
154 | 132 | |
---|
155 | 133 | _rtl92ce_sw_led_control(hw, ledaction); |
---|
156 | 134 | } |
---|