hc
2024-05-16 8d2a02b24d66aa359e83eebc1ed3c0f85367a1cb
kernel/drivers/net/wireless/realtek/rtlwifi/rtl8723be/led.c
....@@ -1,27 +1,5 @@
1
-/******************************************************************************
2
- *
3
- * Copyright(c) 2009-2014 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-2014 Realtek Corporation.*/
253
264 #include "../wifi.h"
275 #include "../pci.h"
....@@ -41,8 +19,8 @@
4119 u8 ledcfg;
4220 struct rtl_priv *rtlpriv = rtl_priv(hw);
4321
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);
4624
4725 switch (pled->ledpin) {
4826 case LED_PIN_GPIO0:
....@@ -69,8 +47,8 @@
6947 struct rtl_priv *rtlpriv = rtl_priv(hw);
7048 u8 ledcfg;
7149
72
- RT_TRACE(rtlpriv, COMP_LED, DBG_LOUD,
73
- "LedAddr:%X ledpin=%d\n", REG_LEDCFG2, pled->ledpin);
50
+ rtl_dbg(rtlpriv, COMP_LED, DBG_LOUD,
51
+ "LedAddr:%X ledpin=%d\n", REG_LEDCFG2, pled->ledpin);
7452
7553 ledcfg = rtl_read_byte(rtlpriv, REG_LEDCFG2);
7654
....@@ -149,6 +127,6 @@
149127 ledaction == LED_CTL_POWER_ON)) {
150128 return;
151129 }
152
- RT_TRACE(rtlpriv, COMP_LED, DBG_LOUD, "ledaction %d,\n", ledaction);
130
+ rtl_dbg(rtlpriv, COMP_LED, DBG_LOUD, "ledaction %d,\n", ledaction);
153131 _rtl8723be_sw_led_control(hw, ledaction);
154132 }