hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/led.c
....@@ -1,27 +1,5 @@
1
-/******************************************************************************
2
- *
3
- * Copyright(c) 2009-2013 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-2013 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:
....@@ -57,8 +35,8 @@
5735 rtl_write_byte(rtlpriv, REG_LEDCFG1, ledcfg & 0x10);
5836 break;
5937 default:
60
- RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD,
61
- "switch case %#x not processed\n", pled->ledpin);
38
+ rtl_dbg(rtlpriv, COMP_ERR, DBG_LOUD,
39
+ "switch case %#x not processed\n", pled->ledpin);
6240 break;
6341 }
6442 pled->ledon = true;
....@@ -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 switch (pled->ledpin) {
7654 case LED_PIN_GPIO0:
....@@ -94,8 +72,8 @@
9472 rtl_write_byte(rtlpriv, REG_LEDCFG1, (ledcfg | BIT(3)));
9573 break;
9674 default:
97
- RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD,
98
- "switch case %#x not processed\n", pled->ledpin);
75
+ rtl_dbg(rtlpriv, COMP_ERR, DBG_LOUD,
76
+ "switch case %#x not processed\n", pled->ledpin);
9977 break;
10078 }
10179 pled->ledon = false;
....@@ -145,7 +123,7 @@
145123 ledaction == LED_CTL_POWER_ON)) {
146124 return;
147125 }
148
- RT_TRACE(rtlpriv, COMP_LED, DBG_TRACE, "ledaction %d,\n",
149
- ledaction);
126
+ rtl_dbg(rtlpriv, COMP_LED, DBG_TRACE, "ledaction %d,\n",
127
+ ledaction);
150128 _rtl88ee_sw_led_control(hw, ledaction);
151129 }