hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/drivers/net/wireless/realtek/rtlwifi/rtl8192de/led.c
....@@ -1,27 +1,5 @@
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.*/
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, "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);
4624
4725 switch (pled->ledpin) {
4826 case LED_PIN_GPIO0:
....@@ -78,8 +56,8 @@
7856 struct rtl_priv *rtlpriv = rtl_priv(hw);
7957 u8 ledcfg;
8058
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);
8361
8462 ledcfg = rtl_read_byte(rtlpriv, REG_LEDCFG2);
8563
....@@ -150,7 +128,7 @@
150128 ledaction == LED_CTL_POWER_ON)) {
151129 return;
152130 }
153
- RT_TRACE(rtlpriv, COMP_LED, DBG_LOUD, "ledaction %d,\n", ledaction);
131
+ rtl_dbg(rtlpriv, COMP_LED, DBG_LOUD, "ledaction %d,\n", ledaction);
154132
155133 _rtl92ce_sw_led_control(hw, ledaction);
156134 }