hc
2024-05-16 8d2a02b24d66aa359e83eebc1ed3c0f85367a1cb
kernel/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/led.c
....@@ -1,25 +1,5 @@
1
-/******************************************************************************
2
- *
3
- * Copyright(c) 2009-2012 Realtek Corporation. All rights reserved.
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
- *****************************************************************************/
1
+// SPDX-License-Identifier: GPL-2.0
2
+/* Copyright(c) 2009-2012 Realtek Corporation.*/
233
244 #include "../wifi.h"
255 #include "../usb.h"
....@@ -34,7 +14,7 @@
3414 pled->ledon = false;
3515 }
3616
37
-static void _rtl92cu_deInit_led(struct rtl_led *pled)
17
+static void rtl92cu_deinit_led(struct rtl_led *pled)
3818 {
3919 }
4020
....@@ -43,8 +23,8 @@
4323 u8 ledcfg;
4424 struct rtl_priv *rtlpriv = rtl_priv(hw);
4525
46
- RT_TRACE(rtlpriv, COMP_LED, DBG_LOUD, "LedAddr:%X ledpin=%d\n",
47
- REG_LEDCFG2, pled->ledpin);
26
+ rtl_dbg(rtlpriv, COMP_LED, DBG_LOUD, "LedAddr:%X ledpin=%d\n",
27
+ REG_LEDCFG2, pled->ledpin);
4828 ledcfg = rtl_read_byte(rtlpriv, REG_LEDCFG2);
4929 switch (pled->ledpin) {
5030 case LED_PIN_GPIO0:
....@@ -69,8 +49,8 @@
6949 struct rtl_priv *rtlpriv = rtl_priv(hw);
7050 u8 ledcfg;
7151
72
- RT_TRACE(rtlpriv, COMP_LED, DBG_LOUD, "LedAddr:%X ledpin=%d\n",
73
- REG_LEDCFG2, pled->ledpin);
52
+ rtl_dbg(rtlpriv, COMP_LED, DBG_LOUD, "LedAddr:%X ledpin=%d\n",
53
+ REG_LEDCFG2, pled->ledpin);
7454 ledcfg = rtl_read_byte(rtlpriv, REG_LEDCFG2);
7555 switch (pled->ledpin) {
7656 case LED_PIN_GPIO0:
....@@ -108,8 +88,8 @@
10888 {
10989 struct rtl_priv *rtlpriv = rtl_priv(hw);
11090
111
- _rtl92cu_deInit_led(&rtlpriv->ledctl.sw_led0);
112
- _rtl92cu_deInit_led(&rtlpriv->ledctl.sw_led1);
91
+ rtl92cu_deinit_led(&rtlpriv->ledctl.sw_led0);
92
+ rtl92cu_deinit_led(&rtlpriv->ledctl.sw_led1);
11393 }
11494
11595 static void _rtl92cu_sw_led_control(struct ieee80211_hw *hw,
....@@ -133,6 +113,6 @@
133113 ledaction == LED_CTL_POWER_ON)) {
134114 return;
135115 }
136
- RT_TRACE(rtlpriv, COMP_LED, DBG_LOUD, "ledaction %d\n", ledaction);
116
+ rtl_dbg(rtlpriv, COMP_LED, DBG_LOUD, "ledaction %d\n", ledaction);
137117 _rtl92cu_sw_led_control(hw, ledaction);
138118 }